@@ -7,9 +7,9 @@ Feature('Session');
7
7
Scenario ( 'simple session @WebDriverIO @Puppeteer @Playwright' , ( { I } ) => {
8
8
I . amOnPage ( '/info' ) ;
9
9
session ( 'john' , ( ) => {
10
- I . amOnPage ( 'https://github.com ' ) ;
10
+ I . amOnPage ( 'https://codecept.io/ ' ) ;
11
11
I . dontSeeInCurrentUrl ( '/info' ) ;
12
- I . see ( 'GitHub ' ) ;
12
+ I . see ( 'CodeceptJS ' ) ;
13
13
} ) ;
14
14
I . dontSee ( 'GitHub' ) ;
15
15
I . seeInCurrentUrl ( '/info' ) ;
@@ -38,11 +38,11 @@ Scenario('screenshots reflect the current page of current session @Puppeteer @Pl
38
38
] ) ;
39
39
40
40
// Assert that screenshots of same page in same session are equal
41
- assert . equal ( default1Digest , default2Digest ) ;
42
- assert . equal ( john1Digest , john2Digest ) ;
41
+ I . expectEqual ( default1Digest , default2Digest ) ;
42
+ I . expectEqual ( john1Digest , john2Digest ) ;
43
43
44
44
// Assert that screenshots of different pages in different sessions are not equal
45
- assert . notEqual ( default1Digest , john1Digest ) ;
45
+ I . expectNotEqual ( default1Digest , john1Digest ) ;
46
46
} ) ;
47
47
48
48
Scenario ( 'Different cookies for different sessions @WebDriverIO @Playwright @Puppeteer' , async ( { I } ) => {
@@ -72,9 +72,9 @@ Scenario('Different cookies for different sessions @WebDriverIO @Playwright @Pup
72
72
assert ( cookies . default ) ;
73
73
assert ( cookies . john ) ;
74
74
assert ( cookies . mary ) ;
75
- assert . notEqual ( cookies . default , cookies . john ) ;
76
- assert . notEqual ( cookies . default , cookies . mary ) ;
77
- assert . notEqual ( cookies . john , cookies . mary ) ;
75
+ I . expectNotEqual ( cookies . default , cookies . john ) ;
76
+ I . expectNotEqual ( cookies . default , cookies . mary ) ;
77
+ I . expectNotEqual ( cookies . john , cookies . mary ) ;
78
78
} ) ;
79
79
80
80
Scenario ( 'should save screenshot for active session @WebDriverIO @Puppeteer @Playwright' , async function ( { I } ) {
@@ -94,7 +94,7 @@ Scenario('should save screenshot for active session @WebDriverIO @Puppeteer @Pla
94
94
] ) ;
95
95
96
96
// Assert that screenshots of same page in same session are equal
97
- assert . equal ( original , failed ) ;
97
+ I . expectEqual ( original , failed ) ;
98
98
} ) ;
99
99
100
100
Scenario ( 'should throw exception and close correctly @WebDriverIO @Puppeteer @Playwright' , ( { I } ) => {
@@ -160,7 +160,7 @@ Scenario('change page emulation @Playwright', async ({ I }) => {
160
160
} , async ( ) => {
161
161
I . amOnPage ( '/' ) ;
162
162
const width = await I . executeScript ( 'window.innerWidth' ) ;
163
- assert . equal ( width , 300 ) ;
163
+ I . expectEqual ( width , 300 ) ;
164
164
} ) ;
165
165
} ) ;
166
166
0 commit comments