Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions playwright-test/tests/test_1.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!');
});
});