diff --git a/js/components/ascribe_app.js b/js/components/ascribe_app.js index 863bffc0..87ab1daf 100644 --- a/js/components/ascribe_app.js +++ b/js/components/ascribe_app.js @@ -23,7 +23,7 @@ let AscribeApp = React.createClass({ const { activeRoute, children, currentUser, routes, whitelabel } = this.props; return ( -
+
+ className={classNames('ascribe-app', 'ascribe-prize-app', `route--${(path ? path.split('/')[0] : 'landing')}`)}> {header} +
{header} +
{header} { .before((actions, find) => { // This will be called before every nested suite begins unless that suite // also defines a `.before()` - // FIXME: use a more generic class for this, like just '.app', - // when we can use this file with the whitelabels - actions.waitForElementToShow('.ascribe-default-app', TIMEOUTS.NORMAL); + actions.waitForElementToShow('.ascribe-app', TIMEOUTS.NORMAL); }); // Suite just to log us in before any other suites run diff --git a/test/gemini/tests/main/basic.js b/test/gemini/tests/main/basic.js index 5657f77f..fd07af2b 100644 --- a/test/gemini/tests/main/basic.js +++ b/test/gemini/tests/main/basic.js @@ -15,8 +15,7 @@ gemini.suite('Basic', (suite) => { .before((actions, find) => { // This will be called before every nested suite begins unless that suite // also defines a `.before()` - // FIXME: use a more generic class for this, like just '.ascribe-app' - actions.waitForElementToShow('.ascribe-default-app', TIMEOUTS.NORMAL); + actions.waitForElementToShow('.ascribe-app', TIMEOUTS.NORMAL); }); gemini.suite('Header-desktop', (headerSuite) => { diff --git a/test/gemini/tests/main/detail.js b/test/gemini/tests/main/detail.js index 39e83d70..1a51836b 100644 --- a/test/gemini/tests/main/detail.js +++ b/test/gemini/tests/main/detail.js @@ -19,9 +19,7 @@ gemini.suite('Work detail', (suite) => { .before((actions, find) => { // This will be called before every nested suite begins unless that suite // also defines a `.before()` - // FIXME: use a more generic class for this, like just '.app', - // when we can use this file with the whitelabels - actions.waitForElementToShow('.ascribe-default-app', TIMEOUTS.NORMAL); + actions.waitForElementToShow('.ascribe-app', TIMEOUTS.NORMAL); // Wait for the social media buttons to appear actions.waitForElementToShow('.ascribe-social-button-list .fb-share-button iframe', TIMEOUTS.SUPER_DUPER_EXTRA_LONG); @@ -58,7 +56,7 @@ gemini.suite('Work detail', (suite) => { .setUrl('/login') .ignoreElements('.ascribe-body') .before((actions, find) => { - actions.waitForElementToShow('.ascribe-default-app', TIMEOUTS.NORMAL); + actions.waitForElementToShow('.ascribe-app', TIMEOUTS.NORMAL); }) .capture('logged in', (actions, find) => { actions.sendKeys(find('.ascribe-login-wrapper input[name=email]'), MAIN_USER.email); @@ -125,7 +123,7 @@ gemini.suite('Work detail', (suite) => { .setUrl('/logout') .ignoreElements('.ascribe-body') .before((actions, find) => { - actions.waitForElementToShow('.ascribe-default-app', TIMEOUTS.NORMAL); + actions.waitForElementToShow('.ascribe-app', TIMEOUTS.NORMAL); }) .capture('logout', (actions, find) => { actions.waitForElementToShow('.ascribe-login-wrapper', TIMEOUTS.LONG); diff --git a/test/gemini/tests/whitelabel/23vivi/23vivi.js b/test/gemini/tests/whitelabel/23vivi/23vivi.js index 99efb310..9d0c397e 100644 --- a/test/gemini/tests/whitelabel/23vivi/23vivi.js +++ b/test/gemini/tests/whitelabel/23vivi/23vivi.js @@ -9,11 +9,10 @@ const TIMEOUTS = environment.TIMEOUTS; */ gemini.suite('23vivi', (suite) => { suite - //TODO: maybe this should be changed to .ascribe-body once the PR that does this is merged - .setCaptureElements('.ascribe-wallet-app') + .setCaptureElements('.ascribe-body') .before((actions, find) => { // This will be called before every nested suite begins - actions.waitForElementToShow('.ascribe-wallet-app', TIMEOUTS.NORMAL); + actions.waitForElementToShow('.ascribe-app', TIMEOUTS.NORMAL); }); gemini.suite('Landing', (landingSuite) => { diff --git a/test/gemini/tests/whitelabel/cyland/cyland.js b/test/gemini/tests/whitelabel/cyland/cyland.js index 8159f53e..9228186a 100644 --- a/test/gemini/tests/whitelabel/cyland/cyland.js +++ b/test/gemini/tests/whitelabel/cyland/cyland.js @@ -9,11 +9,10 @@ const TIMEOUTS = environment.TIMEOUTS; */ gemini.suite('Cyland', (suite) => { suite - //TODO: maybe this should be changed to .ascribe-body once the PR that does this is merged - .setCaptureElements('.ascribe-wallet-app') + .setCaptureElements('.ascribe-body') .before((actions, find) => { // This will be called before every nested suite begins - actions.waitForElementToShow('.ascribe-wallet-app', TIMEOUTS.NORMAL); + actions.waitForElementToShow('.ascribe-app', TIMEOUTS.NORMAL); }); gemini.suite('Landing', (landingSuite) => { diff --git a/test/gemini/tests/whitelabel/ikonotv/ikonotv.js b/test/gemini/tests/whitelabel/ikonotv/ikonotv.js index 84d743c0..81e936e9 100644 --- a/test/gemini/tests/whitelabel/ikonotv/ikonotv.js +++ b/test/gemini/tests/whitelabel/ikonotv/ikonotv.js @@ -10,11 +10,10 @@ const TIMEOUTS = environment.TIMEOUTS; */ gemini.suite('Ikonotv', (suite) => { suite - //TODO: maybe this should be changed to .ascribe-body once the PR that does this is merged - .setCaptureElements('.ascribe-wallet-app') + .setCaptureElements('.ascribe-body') .before((actions, find) => { // This will be called before every nested suite begins - actions.waitForElementToShow('.ascribe-wallet-app', TIMEOUTS.NORMAL); + actions.waitForElementToShow('.ascribe-app', TIMEOUTS.NORMAL); }); gemini.suite('Landing', (landingSuite) => { @@ -40,13 +39,11 @@ gemini.suite('Ikonotv', (suite) => { // its logo to appear gemini.suite('Ikonotv basic', (suite) => { suite - .setCaptureElements('.ascribe-wallet-app') + .setCaptureElements('.ascribe-app') .before((actions, find) => { // This will be called before every nested suite begins unless that suite // also defines a `.before()` - // FIXME: use a more generic class for this, like just '.app', - // when we can use this file with the whitelabels - actions.waitForElementToShow('.ascribe-wallet-app', TIMEOUTS.NORMAL); + actions.waitForElementToShow('.ascribe-app', TIMEOUTS.NORMAL); // Wait for the forms to appear actions.waitForElementToShow('.ascribe-form', TIMEOUTS.NORMAL); diff --git a/test/gemini/tests/whitelabel/lumenus/lumenus.js b/test/gemini/tests/whitelabel/lumenus/lumenus.js index 8e8f568d..b15f31ee 100644 --- a/test/gemini/tests/whitelabel/lumenus/lumenus.js +++ b/test/gemini/tests/whitelabel/lumenus/lumenus.js @@ -9,11 +9,10 @@ const TIMEOUTS = environment.TIMEOUTS; */ gemini.suite('Lumenus', (suite) => { suite - //TODO: maybe this should be changed to .ascribe-body once the PR that does this is merged - .setCaptureElements('.ascribe-wallet-app') + .setCaptureElements('.ascribe-body') .before((actions, find) => { // This will be called before every nested suite begins - actions.waitForElementToShow('.ascribe-wallet-app', TIMEOUTS.NORMAL); + actions.waitForElementToShow('.ascribe-app', TIMEOUTS.NORMAL); }); gemini.suite('Landing', (landingSuite) => {