Update config for running download tests on CI

This commit is contained in:
Benjamin Forehand Jr 2019-03-12 20:47:54 -04:00
parent 15704cb6dc
commit bada0707c5
6 changed files with 45 additions and 11 deletions

View file

@ -51,9 +51,10 @@ describe('Firefox Send', function() {
browser.waitForExist(downloadPage.downloadComplete);
browser.back();
browser.waitForExist('send-archive');
assert.equal(
browser.getText('send-archive > div:first-of-type').substring(0, 24),
'Expires after 1 download'
assert(
browser
.getText('send-archive > div:first-of-type')
.includes('Expires after 1 download')
);
});
});

View file

@ -3,12 +3,16 @@ const assert = require('assert');
const HomePage = require('./pages/desktop/home_page');
describe('Firefox Send homepage', function() {
this.retries(2);
const homePage = new HomePage();
const baseUrl = browser.options['baseUrl'];
const footerLinks = ['mozilla', 'legal', 'legal', 'cookies', 'github'];
beforeEach(function() {
homePage.open();
if (process.env.ANDROID) {
this.skip();
}
});
it('should have the right title', function() {

View file

@ -1,6 +1,5 @@
// eslint-disable-next-line node/no-extraneous-require
const ip = require('ip');
const path = require('path');
const common = require('./wdio.common.conf');
/*/
@ -10,9 +9,8 @@ Config for running selenium from a circleci docker container against localhost
/*/
exports.config = Object.assign({}, common.config, {
baseUrl: `http://${ip.address()}:8000`,
exclude: [path.join(__dirname, './integration/download-tests.js')],
baseUrl: `http://${ip.address()}:8080`,
maxInstances: 1,
bail: 1,
services: [require('./testServer')]
services: [require('./testServer'), 'selenium-standalone']
});