-
Notifications
You must be signed in to change notification settings - Fork 1
Epic 2 pbi 2.2 #95
base: main
Are you sure you want to change the base?
Epic 2 pbi 2.2 #95
Changes from 7 commits
0a5335e
b9929b3
6bffd53
3133275
8ae3bdd
fed4b39
dd4532b
a77b1a9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,19 @@ | ||
| { | ||
| "env": { | ||
| "browser": true, | ||
| "es2021": true, | ||
| "node": true | ||
| }, | ||
| "extends": "eslint:recommended", | ||
| "root": true, | ||
| "parser": "@typescript-eslint/parser", | ||
| "plugins": [ | ||
| "@typescript-eslint" | ||
| ], | ||
| "extends": [ | ||
| "eslint:recommended", | ||
| "plugin:@typescript-eslint/recommended" | ||
| ], | ||
| "parserOptions": { | ||
| "ecmaVersion": "latest", | ||
| "sourceType": "module" | ||
| "sourceType": "module", | ||
| "project": "./tsconfig.json" // Make sure this path is correct if you have a tsconfig.json | ||
| }, | ||
| "rules": {} | ||
| "rules": { | ||
| // Your custom rules here | ||
| } | ||
| } | ||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,16 +1,62 @@ | ||||||||||
| const { defineConfig } = require('@playwright/test'); | ||||||||||
| import { defineConfig, devices } from '@playwright/test'; | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [prettier] reported by reviewdog 🐶
Suggested change
|
||||||||||
|
|
||||||||||
| module.exports = defineConfig({ | ||||||||||
| export default defineConfig({ | ||||||||||
| // Directory where tests are located | ||||||||||
| testDir: './tests', | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [prettier] reported by reviewdog 🐶
Suggested change
|
||||||||||
|
|
||||||||||
| // Directory for test artifacts (videos, traces, screenshots generated during runs) | ||||||||||
| outputDir: 'published-screenshots/test-results', | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [prettier] reported by reviewdog 🐶
Suggested change
|
||||||||||
|
|
||||||||||
| // Directory for visual snapshot baseline images. | ||||||||||
| // When you run `npx playwright test --update-snapshots`, images are saved here. | ||||||||||
| // When you run `npx playwright test`, images are compared against baselines here. | ||||||||||
| snapshotPathTemplate: 'published-screenshots/snapshots/{testFilePath}-{arg}-{projectName}{ext}', | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [prettier] reported by reviewdog 🐶
Suggested change
|
||||||||||
|
|
||||||||||
| // Run tests in parallel | ||||||||||
| fullyParallel: true, | ||||||||||
|
|
||||||||||
| // Fail the build on CI if you accidentally left test.only in the source code. | ||||||||||
| forbidOnly: !!process.env.CI, | ||||||||||
|
|
||||||||||
| // Retry on CI only | ||||||||||
| retries: process.env.CI ? 2 : 0, | ||||||||||
|
|
||||||||||
| // Opt out of parallel tests on CI. | ||||||||||
| workers: process.env.CI ? 1 : undefined, | ||||||||||
|
|
||||||||||
| // Reporter to use. 'blob' is good for CI as it produces a single JSON file. | ||||||||||
| // The interactive HTML report will be generated in the workflow. | ||||||||||
| reporter: 'blob', | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [prettier] reported by reviewdog 🐶
Suggested change
|
||||||||||
|
|
||||||||||
| use: { | ||||||||||
| headless: true, | ||||||||||
| screenshot: 'on', | ||||||||||
| trace: 'on', | ||||||||||
| video: 'off', | ||||||||||
| ignoreHTTPSErrors: true, | ||||||||||
| // Base URL to use in actions like `await page.goto('/')`. | ||||||||||
| // baseURL: 'http://127.0.0.1:3000', // Uncomment and set if you have a local dev server | ||||||||||
|
|
||||||||||
| // Collect trace when retrying the first time. | ||||||||||
| trace: 'on-first-retry', | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [prettier] reported by reviewdog 🐶
Suggested change
|
||||||||||
| }, | ||||||||||
| reporter: [ | ||||||||||
| ['json', { outputFile: 'playwright-metrics.json' }], | ||||||||||
| ['html', { outputFile: 'report.html', open: 'never' }], | ||||||||||
|
|
||||||||||
| // Configure projects for different browsers | ||||||||||
| projects: [ | ||||||||||
| { | ||||||||||
| name: 'chromium', | ||||||||||
| use: { ...devices['Desktop Chrome'] }, | ||||||||||
|
Comment on lines
+42
to
+43
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [prettier] reported by reviewdog 🐶
Suggested change
|
||||||||||
| }, | ||||||||||
| // You can uncomment and add more projects for different browsers if needed: | ||||||||||
| // { | ||||||||||
| // name: 'firefox', | ||||||||||
| // use: { ...devices['Desktop Firefox'] }, | ||||||||||
| // }, | ||||||||||
| // { | ||||||||||
| // name: 'webkit', | ||||||||||
| // use: { ...devices['Desktop Safari'] }, | ||||||||||
| // }, | ||||||||||
| ], | ||||||||||
| }); | ||||||||||
|
|
||||||||||
| // If your tests require a development server to be running: | ||||||||||
| // webServer: { | ||||||||||
| // command: 'npm run start', // Replace with your actual start command (e.g., 'npm start', 'yarn dev') | ||||||||||
| // url: 'http://127.0.0.1:3000', // Replace with the URL your app runs on locally | ||||||||||
| // reuseExistingServer: !process.env.CI, // Reuse server if already running locally | ||||||||||
| // }, | ||||||||||
| }); | ||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,6 @@ | ||||||||||||||
| { | ||||||||||||||
| "status": "failed", | ||||||||||||||
| "failedTests": [ | ||||||||||||||
| "849da1cee0c412ce5534-4ebb083191c59dda5f31" | ||||||||||||||
| ] | ||||||||||||||
| } | ||||||||||||||
|
Comment on lines
+3
to
+6
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [prettier] reported by reviewdog 🐶
Suggested change
|
||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,40 @@ | ||||||||||||||||||||||||||||||||||||||||||
| # Page snapshot | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| ```yaml | ||||||||||||||||||||||||||||||||||||||||||
| - text: This is just a demo of TodoMVC for testing, not the | ||||||||||||||||||||||||||||||||||||||||||
| - link "real TodoMVC app.": | ||||||||||||||||||||||||||||||||||||||||||
| - /url: https://todomvc.com/ | ||||||||||||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [prettier] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||
| - heading "todos" [level=1] | ||||||||||||||||||||||||||||||||||||||||||
| - textbox "What needs to be done?" | ||||||||||||||||||||||||||||||||||||||||||
| - checkbox "❯Mark all as complete" | ||||||||||||||||||||||||||||||||||||||||||
| - text: ❯Mark all as complete | ||||||||||||||||||||||||||||||||||||||||||
| - list: | ||||||||||||||||||||||||||||||||||||||||||
| - listitem: | ||||||||||||||||||||||||||||||||||||||||||
| - checkbox "Toggle Todo" | ||||||||||||||||||||||||||||||||||||||||||
| - text: feed the cat | ||||||||||||||||||||||||||||||||||||||||||
| - listitem: | ||||||||||||||||||||||||||||||||||||||||||
| - checkbox "Toggle Todo" | ||||||||||||||||||||||||||||||||||||||||||
| - text: book a doctors appointment | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+12
to
+17
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [prettier] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||
| - strong: "2" | ||||||||||||||||||||||||||||||||||||||||||
| - text: items left | ||||||||||||||||||||||||||||||||||||||||||
| - list: | ||||||||||||||||||||||||||||||||||||||||||
| - listitem: | ||||||||||||||||||||||||||||||||||||||||||
| - link "All": | ||||||||||||||||||||||||||||||||||||||||||
| - /url: "#/" | ||||||||||||||||||||||||||||||||||||||||||
| - listitem: | ||||||||||||||||||||||||||||||||||||||||||
| - link "Active": | ||||||||||||||||||||||||||||||||||||||||||
| - /url: "#/active" | ||||||||||||||||||||||||||||||||||||||||||
| - listitem: | ||||||||||||||||||||||||||||||||||||||||||
| - link "Completed": | ||||||||||||||||||||||||||||||||||||||||||
| - /url: "#/completed" | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+21
to
+29
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [prettier] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||
| - contentinfo: | ||||||||||||||||||||||||||||||||||||||||||
| - paragraph: Double-click to edit a todo | ||||||||||||||||||||||||||||||||||||||||||
| - paragraph: | ||||||||||||||||||||||||||||||||||||||||||
| - text: Created by | ||||||||||||||||||||||||||||||||||||||||||
| - link "Remo H. Jansen": | ||||||||||||||||||||||||||||||||||||||||||
| - /url: http://github.com/remojansen/ | ||||||||||||||||||||||||||||||||||||||||||
| - paragraph: | ||||||||||||||||||||||||||||||||||||||||||
| - text: Part of | ||||||||||||||||||||||||||||||||||||||||||
| - link "TodoMVC": | ||||||||||||||||||||||||||||||||||||||||||
| - /url: http://todomvc.com | ||||||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+31
to
+40
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [prettier] reported by reviewdog 🐶
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[prettier] reported by reviewdog 🐶