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');
3
3
test . describe ( 'feature foo' , ( ) => {
4
4
test ( 'test 1' , async ( { page } ) => {
5
5
// 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 "]' ) ;
8
8
await element . click ( ) ;
9
9
await element . type ( 'BrowserStack' ) ;
10
10
await element . press ( 'Enter' ) ;
11
11
const title = await page . title ( '' ) ;
12
12
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!' ) ;
14
14
} ) ;
15
15
} ) ;
You can’t perform that action at this time.
0 commit comments