@@ -19,7 +19,7 @@ describe('Puppeteer - BasicAuth', () => {
1919 global . codecept_dir = path . join ( __dirname , '/../data' ) ;
2020
2121 I = new Puppeteer ( {
22- url : 'https ://postman-echo.com ' ,
22+ url : 'http ://localhost:8000 ' ,
2323 windowSize : '500x700' ,
2424 show : false ,
2525 waitForTimeout : 5000 ,
@@ -28,7 +28,7 @@ describe('Puppeteer - BasicAuth', () => {
2828 args : [ '--no-sandbox' , '--disable-setuid-sandbox' ] ,
2929 } ,
3030 defaultPopupAction : 'accept' ,
31- basicAuth : { username : 'postman ' , password : 'password ' } ,
31+ basicAuth : { username : 'admin ' , password : 'admin ' } ,
3232 } ) ;
3333 I . _init ( ) ;
3434 return I . _beforeSuite ( ) ;
@@ -50,8 +50,8 @@ describe('Puppeteer - BasicAuth', () => {
5050
5151 describe ( 'open page with provided basic auth' , ( ) => {
5252 it ( 'should be authenticated ' , async ( ) => {
53- await I . amOnPage ( '/basic-auth ' ) ;
54- await I . see ( '{"authenticated":true} ' ) ;
53+ await I . amOnPage ( '/basic_auth ' ) ;
54+ await I . see ( 'You entered admin as your password. ' ) ;
5555 } ) ;
5656 } ) ;
5757} ) ;
@@ -111,8 +111,8 @@ describe('Puppeteer', function () {
111111 } ) ;
112112
113113 it ( 'should be unauthenticated ' , async ( ) => {
114- await I . amOnPage ( 'https://postman-echo.com/basic-auth ' ) ;
115- await I . see ( 'Unauthorized ') ;
114+ await I . amOnPage ( '/basic_auth ' ) ;
115+ await I . dontSee ( 'You entered admin as your password. ') ;
116116 } ) ;
117117 } ) ;
118118
0 commit comments