File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ const { expect } = require('@playwright/test');
33test . describe ( 'feature foo' , ( ) => {
44 test ( 'test 1' , async ( { page } ) => {
55 // Assertions use the expect API.
6- await page . goto ( 'https://www.google .com/ncr ' ) ;
7- const element = await page . $ ( '[aria-label="Search "]' ) ;
6+ await page . goto ( 'https://www.duckduckgo .com' ) ;
7+ const element = await page . $ ( '[name="q "]' ) ;
88 await element . click ( ) ;
99 await element . type ( 'BrowserStack' ) ;
1010 await element . press ( 'Enter' ) ;
1111 const title = await page . title ( '' ) ;
1212 console . log ( title ) ;
13- expect ( title ) . toEqual ( 'BrowserStack - Google Search ' , 'Expected page title is incorrect!' ) ;
13+ expect ( title ) . toEqual ( 'BrowserStack at DuckDuckGo ' , 'Expected page title is incorrect!' ) ;
1414 } ) ;
1515} ) ;
You can’t perform that action at this time.
0 commit comments