Skip to content

Commit db65ff6

Browse files
sourav-kundufrancisf
authored andcommitted
fix: change spec1 code to use duckduckgo
1 parent 5d04ea0 commit db65ff6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

playwright-test/tests/test_1.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ const { expect } = require('@playwright/test');
33
test.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
});

0 commit comments

Comments
 (0)