diff --git a/playwright-test/tests/test_1.spec.js b/playwright-test/tests/test_1.spec.js index bc5a087..f90f207 100644 --- a/playwright-test/tests/test_1.spec.js +++ b/playwright-test/tests/test_1.spec.js @@ -3,13 +3,13 @@ const { expect } = require('@playwright/test'); test.describe('feature foo', () => { test('my test', async ({ page }) => { // Assertions use the expect API. - await page.goto('https://www.google.com/ncr'); - const element = await page.$('[aria-label="Search"]'); + await page.goto('https://www.duckduckgo.com'); + const element = await page.$('[name="q"]'); await element.click(); await element.type('BrowserStack'); await element.press('Enter'); const title = await page.title(''); console.log(title); - expect(title).toEqual( 'BrowserStack - Google Search', 'Expected page title is incorrect!'); + expect(title).toEqual( 'BrowserStack at DuckDuckGo', 'Expected page title is incorrect!'); }); });