mailtrain/test/e2e/page-objects/mail.js

20 lines
467 B
JavaScript
Raw Normal View History

'use strict';
const config = require('../helpers/config');
const driver = require('../helpers/mocha-e2e').driver;
const page = require('./page');
module.exports = (...extras) => page({
async fetchMail(address) {
await driver.sleep(1000);
await driver.navigate().to(`${config.mailUrl}/${address}`);
await this.waitUntilVisible();
},
async ensureUrl(path) {
throw new Error('Unsupported method.');
},
}, ...extras);