2016-02-05 10:38:59 +01:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const gemini = require('gemini');
|
|
|
|
const environment = require('../../environment');
|
|
|
|
const TIMEOUTS = environment.TIMEOUTS;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Suite of tests against lumenus specific routes
|
|
|
|
*/
|
|
|
|
gemini.suite('Lumenus', (suite) => {
|
|
|
|
suite
|
2016-02-05 14:22:42 +01:00
|
|
|
.setCaptureElements('.ascribe-body')
|
2016-06-02 16:42:20 +02:00
|
|
|
.before((actions) => {
|
2016-02-05 10:38:59 +01:00
|
|
|
// This will be called before every nested suite begins
|
2016-02-05 14:22:42 +01:00
|
|
|
actions.waitForElementToShow('.ascribe-app', TIMEOUTS.NORMAL);
|
2016-02-05 10:38:59 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
gemini.suite('Landing', (landingSuite) => {
|
|
|
|
landingSuite
|
|
|
|
.setUrl('/')
|
2016-06-02 16:42:20 +02:00
|
|
|
.capture('landing', (actions) => {
|
2016-02-05 10:38:59 +01:00
|
|
|
// Wait for the logo to appear
|
|
|
|
actions.waitForElementToShow('.wp-landing-wrapper img', TIMEOUTS.LONG);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
// TODO: add more tests for market specific pages after authentication
|
|
|
|
});
|