Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-playwright

Package Overview
Dependencies
Maintainers
3
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-playwright - npm Package Compare versions

Comparing version 1.17.124 to 1.17.125

2

assets/demo-todo-app.spec.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc