From 78291172b0946239cde8a99286126c2831f8940f Mon Sep 17 00:00:00 2001 From: sourav-kundu <66624530+sourav-kundu@users.noreply.github.com> Date: Tue, 7 Dec 2021 14:10:44 +0530 Subject: [PATCH] fix: change spec1 code to use duckduckgo --- playwright-test/tests/test_1.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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!'); }); });