create-playwright
Advanced tools
Comparing version 1.17.124 to 1.17.125
@@ -411,3 +411,3 @@ import { test, expect, type Page } from '@playwright/test'; | ||
async function createDefaultTodos(page) { | ||
async function createDefaultTodos(page: Page) { | ||
// create a new todo locator | ||
@@ -414,0 +414,0 @@ const newTodo = page.getByPlaceholder('What needs to be done?'); |
// @ts-check | ||
const { test, expect } = require('@playwright/test'); | ||
test('homepage has title and links to intro page', async ({ page }) => { | ||
test('has title', async ({ page }) => { | ||
await page.goto('https://playwright.dev/'); | ||
@@ -9,14 +9,12 @@ | ||
await expect(page).toHaveTitle(/Playwright/); | ||
}); | ||
// create a locator | ||
const getStarted = page.getByRole('link', { name: 'Get started' }); | ||
test('get started link', async ({ page }) => { | ||
await page.goto('https://playwright.dev/'); | ||
// Expect an attribute "to be strictly equal" to the value. | ||
await expect(getStarted).toHaveAttribute('href', '/docs/intro'); | ||
// Click the get started link. | ||
await page.getByRole('link', { name: 'Get started' }).click(); | ||
// Click the get started link. | ||
await getStarted.click(); | ||
// Expects the URL to contain intro. | ||
await expect(page).toHaveURL(/.*intro/); | ||
}); |
import { test, expect } from '@playwright/test'; | ||
test('homepage has title and links to intro page', async ({ page }) => { | ||
test('has title', async ({ page }) => { | ||
await page.goto('https://playwright.dev/'); | ||
@@ -8,11 +8,9 @@ | ||
await expect(page).toHaveTitle(/Playwright/); | ||
}); | ||
// create a locator | ||
const getStarted = page.getByRole('link', { name: 'Get started' }); | ||
test('get started link', async ({ page }) => { | ||
await page.goto('https://playwright.dev/'); | ||
// Expect an attribute "to be strictly equal" to the value. | ||
await expect(getStarted).toHaveAttribute('href', '/docs/intro'); | ||
// Click the get started link. | ||
await getStarted.click(); | ||
await page.getByRole('link', { name: 'Get started' }).click(); | ||
@@ -19,0 +17,0 @@ // Expects the URL to contain intro. |
{ | ||
"name": "create-playwright", | ||
"version": "1.17.124", | ||
"version": "1.17.125", | ||
"description": "Getting started with writing end-to-end tests with Playwright.", | ||
@@ -5,0 +5,0 @@ "repository": "github:Microsoft/playwright", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
210316
5946