Skip to content

Commit 0f6ad5a

Browse files
committed
update(): fix old tests for working e2e env
1 parent d9f2159 commit 0f6ad5a

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

e2e/index.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
describe('index', () => {
22

33
beforeEach(() => {
4-
browser.get('/index.html');
4+
browser.get('/');
55
});
66

77
it('should have a title', () => {

src/demo-app/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!doctype html>
22
{{!-- This file is an handlebar file that gets filled at build time. --}}
3-
<html>
3+
<html lang="en">
44
<head>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1">

src/e2e-app/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!doctype html>
22
{{!-- This file is an handlebar file that gets filled at build time. --}}
3-
<html>
3+
<html lang="en">
44
<head>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1">

test/protractor.conf.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ const config = {
1717
package: 'protractor-accessibility-plugin'
1818
}],
1919
specs: [ path.join(__dirname, '../e2e/**/*.e2e.ts') ],
20-
baseUrl: E2E_BASE_URL
20+
baseUrl: E2E_BASE_URL,
2121
};
2222

2323

2424
if (process.env['TRAVIS'] !== undefined) {
2525
const key = require('../scripts/sauce/sauce_config');
26+
2627
config.sauceUser = process.env['SAUCE_USERNAME'];
2728
config.sauceKey = key;
2829
config.capabilities = {
@@ -31,6 +32,12 @@ if (process.env['TRAVIS'] !== undefined) {
3132
'build': process.env['TRAVIS_JOB_NUMBER'],
3233
'name': 'Material 2 E2E Tests'
3334
};
35+
36+
// Protractors default timeout to wait for the Angular initialization is 10 seconds.
37+
// This timeout is sometimes too short for sauce-connect tunnel connections.
38+
// For example, a second page request took about 12 seconds.
39+
// The timeout is specified in milliseconds.
40+
config.getPageTimeout = 1000 * 15
3441
}
3542

3643

0 commit comments

Comments
 (0)