Skip to content
Merged
Show file tree
Hide file tree
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_10.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 Percy');
await element.press('Enter');
const title = await page.title('');
console.log(title);
expect(title).toEqual( 'BrowserStack Percy - Google Search', 'Expected page title is incorrect!');
expect(title).toEqual( 'BrowserStack Percy at DuckDuckGo', 'Expected page title is incorrect!');
});
});
6 changes: 3 additions & 3 deletions playwright-test/tests/test_2.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 Playwright');
await element.press('Enter');
const title = await page.title('');
console.log(title);
expect(title).toEqual( 'BrowserStack Playwright - Google Search', 'Expected page title is incorrect!');
expect(title).toEqual( 'BrowserStack Playwright at DuckDuckGo', 'Expected page title is incorrect!');
});
});
6 changes: 3 additions & 3 deletions playwright-test/tests/test_3.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 Puppeteer');
await element.press('Enter');
const title = await page.title('');
console.log(title);
expect(title).toEqual( 'BrowserStack Puppeteer - Google Search', 'Expected page title is incorrect!');
expect(title).toEqual( 'BrowserStack Puppeteer at DuckDuckGo', 'Expected page title is incorrect!');
});
});
6 changes: 3 additions & 3 deletions playwright-test/tests/test_4.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 Cypress');
await element.press('Enter');
const title = await page.title('');
console.log(title);
expect(title).toEqual( 'BrowserStack Cypress - Google Search', 'Expected page title is incorrect!');
expect(title).toEqual( 'BrowserStack Cypress at DuckDuckGo', 'Expected page title is incorrect!');
});
});
6 changes: 3 additions & 3 deletions playwright-test/tests/test_5.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 Local');
await element.press('Enter');
const title = await page.title('');
console.log(title);
expect(title).toEqual( 'BrowserStack Local - Google Search', 'Expected page title is incorrect!');
expect(title).toEqual( 'BrowserStack Local at DuckDuckGo', 'Expected page title is incorrect!');
});
});
6 changes: 3 additions & 3 deletions playwright-test/tests/test_6.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 Selenium');
await element.press('Enter');
const title = await page.title('');
console.log(title);
expect(title).toEqual( 'BrowserStack Selenium - Google Search', 'Expected page title is incorrect!');
expect(title).toEqual( 'BrowserStack Selenium at DuckDuckGo', 'Expected page title is incorrect!');
});
});
8 changes: 4 additions & 4 deletions playwright-test/tests/test_7.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 Speedlab');
await element.type('BrowserStack SpeedLab');
await element.press('Enter');
const title = await page.title('');
console.log(title);
expect(title).toEqual( 'BrowserStack Speedlab - Google Search', 'Expected page title is incorrect!');
expect(title).toEqual( 'BrowserStack SpeedLab at DuckDuckGo', 'Expected page title is incorrect!');
});
});
6 changes: 3 additions & 3 deletions playwright-test/tests/test_8.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 Live');
await element.press('Enter');
const title = await page.title('');
console.log(title);
expect(title).toEqual( 'BrowserStack Live - Google Search', 'Expected page title is incorrect!');
expect(title).toEqual( 'BrowserStack Live at DuckDuckGo', 'Expected page title is incorrect!');
});
});
6 changes: 3 additions & 3 deletions playwright-test/tests/test_9.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 Appium');
await element.press('Enter');
const title = await page.title('');
console.log(title);
expect(title).toEqual( 'BrowserStack Appium - Google Search', 'Expected page title is incorrect!');
expect(title).toEqual( 'BrowserStack Appium at DuckDuckGo', 'Expected page title is incorrect!');
});
});