1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00
onion/gemini/whitelabel/lumenus/lumenus.js
Brett Sun e895c76561 Add whitelabel visual test suite
Currently just checks landing page and some pages accessible to
unauthorized users.
2016-02-04 13:30:18 +01:00

28 lines
872 B
JavaScript

'use strict';
const gemini = require('gemini');
/**
* Suite of tests against lumenus specific routes
*/
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')
.before((actions, find) => {
// This will be called before every nested suite begins
actions.waitForElementToShow('.ascribe-wallet-app', 5000);
});
gemini.suite('Landing', (landingSuite) => {
landingSuite
.setUrl('/')
.capture('landing', (actions, find) => {
// Wait for the logo to appear
actions.waitForElementToShow('.wp-landing-wrapper img', 10000);
});
});
// TODO: add more tests for market specific pages after authentication
});