Unverified Commit 6713f691 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #2600 from ethereum/yann300-patch-4

Default to dark theme
parents 4e410a8b 40ea18a0
...@@ -38,7 +38,7 @@ export class ThemeModule extends Plugin { ...@@ -38,7 +38,7 @@ export class ThemeModule extends Plugin {
config: registry.get('config').api config: registry.get('config').api
} }
this.themes = themes.reduce((acc, theme) => ({ ...acc, [theme.name]: theme }), {}) this.themes = themes.reduce((acc, theme) => ({ ...acc, [theme.name]: theme }), {})
this.active = this._deps.config.get('settings/theme') ? this._deps.config.get('settings/theme') : 'Flatly' this.active = this._deps.config.get('settings/theme') ? this._deps.config.get('settings/theme') : 'Dark'
} }
/** Return the active theme */ /** Return the active theme */
......
...@@ -29,5 +29,6 @@ function initModules (browser, callback) { ...@@ -29,5 +29,6 @@ function initModules (browser, callback) {
.clickLaunchIcon('settings') .clickLaunchIcon('settings')
.setValue('#gistaccesstoken', process.env.gist_token) .setValue('#gistaccesstoken', process.env.gist_token)
.click('#savegisttoken') .click('#savegisttoken')
.click('#settingsView #Flatly') // e2e tests were initially developed with Flatly. Some tests are failing with the default one (Dark), because the dark theme put uppercase everywhere.
.perform(() => { callback() }) .perform(() => { callback() })
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment