Skip to content

Commit

Permalink
removed page preferences; closes #2259
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Kunze committed Mar 13, 2019
1 parent e08f1b7 commit 67d3d39
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 296 deletions.
82 changes: 0 additions & 82 deletions app/src/renderer/components/common/PagePreferences.vue

This file was deleted.

3 changes: 0 additions & 3 deletions app/src/renderer/components/common/ToolBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
<i v-tooltip.bottom="'Refresh'" class="material-icons">refresh</i>
</a>
<slot />
<router-link v-if="session.signedIn" id="settings" to="/preferences">
<i v-tooltip.bottom="'Preferences'" class="material-icons">settings</i>
</router-link>
<a
v-if="session.signedIn"
id="signOut-btn"
Expand Down
6 changes: 0 additions & 6 deletions app/src/renderer/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ export default [
name: `validator`,
component: require(`./components/staking/PageValidator`).default
},
{
path: `/preferences`,
name: `preferences`,
component: require(`./components/common/PagePreferences`).default,
meta: { requiresAuth: true }
},
{
path: `/wallet`,
name: `wallet`,
Expand Down
11 changes: 2 additions & 9 deletions test/e2e/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,14 @@ module.exports = {
})
console.log(`navigated to "${linkText}"`)
},
async navigateToPreferences(app) {
await module.exports.openMenu(app)
// click link
await app.client.waitForExist(`#settings`, 1000)
await app.client.$(`#settings`).click()
console.log(`navigated to preferences`)
},
sleep,
async waitForText(elGetterFn, text, timeout = 5000) {
const start = Date.now()
while ((await elGetterFn().getText()) !== text) {
if (Date.now() - start >= timeout) {
throw Error(
`Timed out waiting for text. Expected ${text}, Showing ${(await elGetterFn().getText()) ||
`nothing`}`
`nothing`}`
)
}
await sleep(100)
Expand All @@ -85,7 +78,7 @@ module.exports = {
if (Date.now() - start >= timeout) {
throw Error(
`Timed out waiting for value. Expected ${value}, Showing ${(await elGetterFn().getValue()) ||
`nothing`}`
`nothing`}`
)
}
await sleep(100)
Expand Down
25 changes: 0 additions & 25 deletions test/e2e/preferences.js

This file was deleted.

104 changes: 0 additions & 104 deletions test/unit/specs/components/common/PagePreferences.spec.js

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,6 @@ exports[`ToolBar has the expected html structure 1`] = `
>
<!---->
<router-link-stub
id="settings"
to="/preferences"
>
<i
class="material-icons"
>
settings
</i>
</router-link-stub>
<a
id="signOut-btn"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,6 @@ exports[`PageGovernance disables proposal creation if not connected 1`] = `
>
<!---->
<router-link-stub
id="settings"
to="/preferences"
>
<i
class="material-icons"
>
settings
</i>
</router-link-stub>
<a
id="signOut-btn"
>
Expand Down Expand Up @@ -150,17 +139,6 @@ exports[`PageGovernance has the expected html structure 1`] = `
>
<!---->
<router-link-stub
id="settings"
to="/preferences"
>
<i
class="material-icons"
>
settings
</i>
</router-link-stub>
<a
id="signOut-btn"
>
Expand Down

0 comments on commit 67d3d39

Please sign in to comment.