File tree 4 files changed +11
-4
lines changed
4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
describe ( 'index' , ( ) => {
2
2
3
3
beforeEach ( ( ) => {
4
- browser . get ( '/index.html ' ) ;
4
+ browser . get ( '/' ) ;
5
5
} ) ;
6
6
7
7
it ( 'should have a title' , ( ) => {
Original file line number Diff line number Diff line change 1
1
<!doctype html>
2
2
{{!-- This file is an handlebar file that gets filled at build time. --}}
3
- < html >
3
+ < html lang =" en " >
4
4
< head >
5
5
< meta charset ="utf-8 ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
Original file line number Diff line number Diff line change 1
1
<!doctype html>
2
2
{{!-- This file is an handlebar file that gets filled at build time. --}}
3
- < html >
3
+ < html lang =" en " >
4
4
< head >
5
5
< meta charset ="utf-8 ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
Original file line number Diff line number Diff line change @@ -17,12 +17,13 @@ const config = {
17
17
package : 'protractor-accessibility-plugin'
18
18
} ] ,
19
19
specs : [ path . join ( __dirname , '../e2e/**/*.e2e.ts' ) ] ,
20
- baseUrl : E2E_BASE_URL
20
+ baseUrl : E2E_BASE_URL ,
21
21
} ;
22
22
23
23
24
24
if ( process . env [ 'TRAVIS' ] !== undefined ) {
25
25
const key = require ( '../scripts/sauce/sauce_config' ) ;
26
+
26
27
config . sauceUser = process . env [ 'SAUCE_USERNAME' ] ;
27
28
config . sauceKey = key ;
28
29
config . capabilities = {
@@ -31,6 +32,12 @@ if (process.env['TRAVIS'] !== undefined) {
31
32
'build' : process . env [ 'TRAVIS_JOB_NUMBER' ] ,
32
33
'name' : 'Material 2 E2E Tests'
33
34
} ;
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
34
41
}
35
42
36
43
You can’t perform that action at this time.
0 commit comments