mirror of
https://github.com/ascribe/onion.git
synced 2025-01-08 20:55:59 +01:00
40894cfea6
Simplifies testing so we can just look for a single class throughout all the apps when ensuring React has loaded our app
29 lines
871 B
JavaScript
29 lines
871 B
JavaScript
'use strict';
|
|
|
|
const gemini = require('gemini');
|
|
const environment = require('../../environment');
|
|
const TIMEOUTS = environment.TIMEOUTS;
|
|
|
|
/**
|
|
* Suite of tests against 23vivi specific routes
|
|
*/
|
|
gemini.suite('23vivi', (suite) => {
|
|
suite
|
|
.setCaptureElements('.ascribe-body')
|
|
.before((actions, find) => {
|
|
// This will be called before every nested suite begins
|
|
actions.waitForElementToShow('.ascribe-app', TIMEOUTS.NORMAL);
|
|
});
|
|
|
|
gemini.suite('Landing', (landingSuite) => {
|
|
landingSuite
|
|
.setUrl('/')
|
|
.capture('landing', (actions, find) => {
|
|
// Wait for the logo to appear
|
|
actions.waitForElementToShow('.vivi23-landing--header-logo', TIMEOUTS.LONG);
|
|
});
|
|
});
|
|
|
|
// TODO: add more tests for market specific pages after authentication
|
|
});
|