mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
e895c76561
Currently just checks landing page and some pages accessible to unauthorized users.
29 lines
920 B
JavaScript
29 lines
920 B
JavaScript
'use strict';
|
|
|
|
const gemini = require('gemini');
|
|
|
|
/**
|
|
* 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', 5000);
|
|
});
|
|
|
|
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', 10000);
|
|
});
|
|
});
|
|
|
|
// TODO: add more tests for cyland specific pages after authentication
|
|
});
|