chore(create-playwright): roll to 0.1.5 (#8889)

This commit is contained in:
Max Schmitt 2021-09-13 22:48:19 +02:00 committed by GitHub
parent 5b1440e14a
commit 87c2b4b200
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 7 deletions

View File

@ -1 +1,7 @@
!lib/**/*
!/lib/**/*
/node_modules/
/test-results/
/src/**/*
/tests/**/*
/playwright.config.ts
/tsconfig.json

View File

@ -3,6 +3,6 @@ const { test, expect } = require('@playwright/test');
test('basic test', async ({ page }) => {
await page.goto('https://playwright.dev/');
await page.locator('text=Get Started').click();
await expect(page).toHaveTitle(/Getting Started/);
await page.locator('text=Get started').click();
await expect(page).toHaveTitle(/Getting started/);
});

View File

@ -2,6 +2,6 @@ import { test, expect } from '@playwright/test';
test('basic test', async ({ page }) => {
await page.goto('https://playwright.dev/');
await page.locator('text=Get Started').click();
await expect(page).toHaveTitle(/Getting Started/);
await page.locator('text=Get started').click();
await expect(page).toHaveTitle(/Getting started/);
});

View File

@ -1,6 +1,6 @@
{
"name": "create-playwright",
"version": "0.1.4",
"version": "0.1.5",
"description": "Getting started with writing end-to-end tests with Playwright.",
"repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev",

View File

@ -39,7 +39,7 @@ export async function createFiles(rootDir: string, files: Map<string, string>, f
const { override } = await prompt<{ override: boolean }>({
type: 'confirm',
name: 'override',
message: `${absoluteFilePath} already exists. Should it override?`,
message: `${absoluteFilePath} already exists. Override it?`,
initial: false
});
if (!override)