Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #585: Create end2end test for expand/exit buttons in project page #620

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ firestore-debug.log
/test-results/
/playwright-report/
/playwright/.cache/
/blob-report/
18 changes: 18 additions & 0 deletions e2e/example.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { test, expect } from '@playwright/test';

test('has title', async ({ page }) => {
await page.goto('https://playwright.dev/');

// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/Playwright/);
});

test('get started link', async ({ page }) => {
await page.goto('https://playwright.dev/');

// Click the get started link.
await page.getByRole('link', { name: 'Get started' }).click();

// Expects page to have a heading with the name of Installation.
await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible();
});
24,601 changes: 12,301 additions & 12,300 deletions package-lock.json

Large diffs are not rendered by default.

202 changes: 101 additions & 101 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,104 +1,104 @@
{
"name": "wordplay",
"version": "0.13.1",
"scripts": {
"postinstall": "run-script-os",
"postinstall:default": "svelte-kit sync && cp .env.template .env",
"postinstall:windows": "svelte-kit sync && copy .env.template .env",
"check": "svelte-check --tsconfig ./tsconfig.json --watch .svelte-kit",
"lint": "eslint src",
"test": "vitest",
"test:coverage": "vitest run --coverage",
"end2end": "npx playwright test",
"dev": "vite dev",
"emu": "npm run env && firebase emulators:start --project=demo-wordplay",
"env": "run-script-os",
"env:default": "cp .env.${GCLOUD_PROJECT:-template} .env",
"env:windows": "copy .env.template .env",
"build": "npm run env && vite build",
"preview": "vite preview",
"stage": "firebase use dev && firebase deploy",
"release": "firebase use prod && firebase deploy && firebase use dev",
"tutorial-schema": "npx ts-json-schema-generator --no-type-check --tsconfig tsconfig.json --path 'src/tutorial/Tutorial.ts' --type 'Tutorial' --out static/schemas/Tutorial.json",
"locale-schema": "npx ts-json-schema-generator --no-type-check --tsconfig tsconfig.json --path 'src/locale/LocaleText.ts' --type 'LocaleText' --out static/schemas/LocaleText.json",
"create-schemas": "npm run tutorial-schema && npm run locale-schema",
"verify-locales": "npx tsx src/util/verify-locales.ts",
"locales": "npm-watch verify-locales",
"schemas": "npm-watch create-schemas",
"merge": "git checkout main && git merge dev && git push origin main && git checkout dev"
"name": "wordplay",
"version": "0.13.1",
"scripts": {
"postinstall": "run-script-os",
"postinstall:default": "svelte-kit sync && cp .env.template .env",
"postinstall:windows": "svelte-kit sync && copy .env.template .env",
"check": "svelte-check --tsconfig ./tsconfig.json --watch .svelte-kit",
"lint": "eslint src",
"test": "vitest",
"test:coverage": "vitest run --coverage",
"end2end": "npx playwright test",
"dev": "vite dev",
"emu": "npm run env && firebase emulators:start --project=demo-wordplay",
"env": "run-script-os",
"env:default": "cp .env.${GCLOUD_PROJECT:-template} .env",
"env:windows": "copy .env.template .env",
"build": "npm run env && vite build",
"preview": "vite preview",
"stage": "firebase use dev && firebase deploy",
"release": "firebase use prod && firebase deploy && firebase use dev",
"tutorial-schema": "npx ts-json-schema-generator --no-type-check --tsconfig tsconfig.json --path 'src/tutorial/Tutorial.ts' --type 'Tutorial' --out static/schemas/Tutorial.json",
"locale-schema": "npx ts-json-schema-generator --no-type-check --tsconfig tsconfig.json --path 'src/locale/LocaleText.ts' --type 'LocaleText' --out static/schemas/LocaleText.json",
"create-schemas": "npm run tutorial-schema && npm run locale-schema",
"verify-locales": "npx tsx src/util/verify-locales.ts",
"locales": "npm-watch verify-locales",
"schemas": "npm-watch create-schemas",
"merge": "git checkout main && git merge dev && git push origin main && git checkout dev"
},
"watch": {
"verify-locales": {
"patterns": [
"src/locale/en-US.json",
"static/locales",
"static/schemas",
"verify-locales.ts"
],
"extensions": "json,ts",
"quiet": true
},
"watch": {
"verify-locales": {
"patterns": [
"src/locale/en-US.json",
"static/locales",
"static/schemas",
"verify-locales.ts"
],
"extensions": "json,ts",
"quiet": true
},
"create-schemas": {
"patterns": [
"src/locale"
],
"extensions": "ts",
"quiet": true
}
},
"devDependencies": {
"@google-cloud/translate": "^8.3.0",
"@playwright/test": "^1",
"svelte": "^5",
"svelte-check": "^4.0",
"svelte-jester": "^5",
"svelte-preprocess": "^6.0",
"@sveltejs/adapter-static": "^3",
"@sveltejs/kit": "^2",
"@sveltejs/vite-plugin-svelte": "^4",
"@types/matter-js": "^0.19",
"@types/node": "^22",
"@types/uuid": "^10",
"@typescript-eslint/eslint-plugin": "^8",
"@typescript-eslint/parser": "^8",
"ajv": "^8",
"chalk": "^5.3.0",
"eslint": "^9",
"eslint-plugin-compat": "^6",
"eslint-plugin-import": "^2",
"eslint-plugin-svelte": "^2",
"npm-watch": "^0",
"prettier": "^3",
"prettier-plugin-svelte": "^3",
"run-script-os": "^1.1.6",
"ts-jest": "^29.1",
"ts-json-schema-generator": "^1",
"tslib": "^2.6",
"tsx": "^4.7.0",
"typescript": "^5",
"vite": "^5.4",
"vite-plugin-eslint": "^1.8.1",
"vitest": "^2"
},
"type": "module",
"dependencies": {
"@axe-core/playwright": "^4.10",
"colorjs.io": "^0.5.2",
"decimal.js": "^10",
"dexie": "^4.0",
"firebase": "^10",
"firebase-admin": "^12",
"firebase-functions": "^5",
"firebase-functions-test": "^3.3.0",
"graphemer": "^1.4.0",
"matter-js": "^0.20",
"pitchy": "^4.1.0",
"recoverable-random": "^1.0.3",
"uuid": "^11",
"zod": "^3.22.4"
},
"browserslist": [
"defaults",
"not op_mini all"
]
"create-schemas": {
"patterns": [
"src/locale"
],
"extensions": "ts",
"quiet": true
}
},
"devDependencies": {
"@google-cloud/translate": "^8.3.0",
"@playwright/test": "^1.49.0",
"@sveltejs/adapter-static": "^3",
"@sveltejs/kit": "^2",
"@sveltejs/vite-plugin-svelte": "^4",
"@types/matter-js": "^0.19",
"@types/node": "^22",
"@types/uuid": "^10",
"@typescript-eslint/eslint-plugin": "^8",
"@typescript-eslint/parser": "^8",
"ajv": "^8",
"chalk": "^5.3.0",
"eslint": "^9",
"eslint-plugin-compat": "^6",
"eslint-plugin-import": "^2",
"eslint-plugin-svelte": "^2",
"npm-watch": "^0",
"prettier": "^3",
"prettier-plugin-svelte": "^3",
"run-script-os": "^1.1.6",
"svelte": "^5",
"svelte-check": "^4.0",
"svelte-jester": "^5",
"svelte-preprocess": "^6.0",
"ts-jest": "^29.1",
"ts-json-schema-generator": "^1",
"tslib": "^2.6",
"tsx": "^4.7.0",
"typescript": "^5",
"vite": "^5.4",
"vite-plugin-eslint": "^1.8.1",
"vitest": "^2"
},
"type": "module",
"dependencies": {
"@axe-core/playwright": "^4.10",
"colorjs.io": "^0.5.2",
"decimal.js": "^10",
"dexie": "^4.0",
"firebase": "^10",
"firebase-admin": "^12",
"firebase-functions": "^5",
"firebase-functions-test": "^3.3.0",
"graphemer": "^1.4.0",
"matter-js": "^0.20",
"pitchy": "^4.1.0",
"recoverable-random": "^1.0.3",
"uuid": "^11",
"zod": "^3.22.4"
},
"browserslist": [
"defaults",
"not op_mini all"
]
}
Loading