Skip to content

Commit

Permalink
chore: use github pages instead of webdriver.io for testing speed
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelly Selden authored and kellyselden committed Nov 20, 2020
1 parent ddc65de commit 2f3a03c
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 15 deletions.
5 changes: 5 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<head>
<title>Testing FalTest</title>
</head>
</html>
4 changes: 2 additions & 2 deletions examples/custom-cli/tests/sample-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ describe('sample', function() {
setUpWebDriver.call(this);

it('works', async function() {
await this.browser.url('https://webdriver.io');
await this.browser.url('https://crowdstrike.github.io/faltest');

let title = await this.browser.getTitle();

assert.strictEqual(title, 'WebdriverIO · Next-gen browser and mobile automation test framework for Node.js');
assert.strictEqual(title, 'Testing FalTest');
});
});
4 changes: 2 additions & 2 deletions examples/lifecycle-only/tests/sample-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ describe('sample', function() {
setUpWebDriver.call(this);

it('works', async function() {
await this.browser.url('https://webdriver.io');
await this.browser.url('https://crowdstrike.github.io/faltest');

let title = await this.browser.getTitle();

assert.strictEqual(title, 'WebdriverIO · Next-gen browser and mobile automation test framework for Node.js');
assert.strictEqual(title, 'Testing FalTest');
});
});
8 changes: 4 additions & 4 deletions examples/multiple-browsers/tests/sample-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ describe('sample', function() {

it('works', async function() {
await Promise.all([
this.browsers[0].url('https://webdriver.io'),
this.browsers[1].url('https://webdriver.io'),
this.browsers[0].url('https://crowdstrike.github.io/faltest'),
this.browsers[1].url('https://crowdstrike.github.io/faltest'),
]);

let [
Expand All @@ -20,7 +20,7 @@ describe('sample', function() {
this.browsers[1].getTitle(),
]);

assert.strictEqual(title1, 'WebdriverIO · Next-gen browser and mobile automation test framework for Node.js');
assert.strictEqual(title2, 'WebdriverIO · Next-gen browser and mobile automation test framework for Node.js');
assert.strictEqual(title1, 'Testing FalTest');
assert.strictEqual(title2, 'Testing FalTest');
});
});
4 changes: 2 additions & 2 deletions examples/runner-only/tests/sample-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ describe('sample', function() {
setUpWebDriver.call(this);

it('works', async function() {
await this.browser.url('https://webdriver.io');
await this.browser.url('https://crowdstrike.github.io/faltest');

let title = await this.browser.getTitle();

assert.strictEqual(title, 'WebdriverIO · Next-gen browser and mobile automation test framework for Node.js');
assert.strictEqual(title, 'Testing FalTest');
});
});
4 changes: 2 additions & 2 deletions fixtures/global-install/tests/sample-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ describe('sample', function() {
setUpWebDriver.call(this);

it('works', async function() {
await this.browser.url('https://webdriver.io');
await this.browser.url('https://crowdstrike.github.io/faltest');

let title = await this.browser.getTitle();

assert.strictEqual(title, 'WebdriverIO · Next-gen browser and mobile automation test framework for Node.js');
assert.strictEqual(title, 'Testing FalTest');
});
});
6 changes: 3 additions & 3 deletions packages/remote/test/acceptance/multiple-browsers-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const {
} = require('../../../remote');

describe(function() {
this.timeout(60e3);
this.timeout(30e3);

before(async function() {
this.webDriver = await startWebDriver();
Expand All @@ -26,15 +26,15 @@ describe(function() {
let browsers = await Promise.all([...Array(2)].map(startBrowser));

await Promise.all(browsers.map(browser => {
return browser.url('https://webdriver.io');
return browser.url('https://crowdstrike.github.io/faltest');
}));

let titles = await Promise.all(browsers.map(browser => {
return browser.getTitle();
}));

for (let title of titles) {
expect(title).to.equal('WebdriverIO · Next-gen browser and mobile automation test framework for Node.js');
expect(title).to.equal('Testing FalTest');
}

await Promise.all(browsers.map(stopBrowser));
Expand Down

0 comments on commit 2f3a03c

Please sign in to comment.