mirror of
https://github.com/ascribe/onion.git
synced 2024-07-01 06:02:12 +02:00
31 lines
1.0 KiB
JavaScript
31 lines
1.0 KiB
JavaScript
|
'use strict';
|
||
|
|
||
|
const gemini = require('gemini');
|
||
|
const environment = require('../../environment');
|
||
|
const TIMEOUTS = environment.TIMEOUTS;
|
||
|
|
||
|
/**
|
||
|
* Suite of tests against Cyland specific routes
|
||
|
*/
|
||
|
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')
|
||
|
.before((actions, find) => {
|
||
|
// This will be called before every nested suite begins
|
||
|
actions.waitForElementToShow('.ascribe-wallet-app', TIMEOUTS.NORMAL);
|
||
|
});
|
||
|
|
||
|
gemini.suite('Landing', (landingSuite) => {
|
||
|
landingSuite
|
||
|
.setUrl('/')
|
||
|
// Ignore Cyland's logo as it's a gif
|
||
|
.ignoreElements('.cyland-landing img')
|
||
|
.capture('landing', (actions, find) => {
|
||
|
actions.waitForElementToShow('.cyland-landing img', TIMEOUTS.LONG);
|
||
|
});
|
||
|
});
|
||
|
|
||
|
// TODO: add more tests for cyland specific pages after authentication
|
||
|
});
|