-
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 6 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,41 @@ | ||||||||||
| const { defineConfig } = require('@playwright/test'); | ||||||||||
| // playwright.config.js | ||||||||||
| 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({ | ||||||||||
| 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
|
||||||||||
| fullyParallel: true, | ||||||||||
| forbidOnly: !!process.env.CI, | ||||||||||
| retries: process.env.CI ? 2 : 0, | ||||||||||
| workers: process.env.CI ? 1 : undefined, | ||||||||||
|
|
||||||||||
| // ⭐ NEW: Explicitly define the output directory for all Playwright artifacts | ||||||||||
| // This is where screenshots, visual diffs, and the main report structure will go. | ||||||||||
| outputDir: 'published-screenshots', | ||||||||||
|
|
||||||||||
| reporter: [ | ||||||||||
| // ⭐ ADJUSTED: 'html' outputFolder is now relative to 'outputDir' | ||||||||||
| ['html', { open: 'never', outputFolder: 'html' }], | ||||||||||
| // ⭐ ADJUSTED: 'json' outputFile is now relative to 'outputDir' | ||||||||||
| ['json', { outputFile: 'results.json' }] | ||||||||||
| ], | ||||||||||
| use: { | ||||||||||
| headless: true, | ||||||||||
| screenshot: 'on', | ||||||||||
| trace: 'on', | ||||||||||
| video: 'off', | ||||||||||
| ignoreHTTPSErrors: true, | ||||||||||
| 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
|
||||||||||
| headless: true, // Playwright runs headless by default in CI | ||||||||||
| screenshot: 'on', // Takes screenshots on failure or specific steps, and also applies to toHaveScreenshot | ||||||||||
| }, | ||||||||||
| reporter: [ | ||||||||||
| ['json', { outputFile: 'playwright-metrics.json' }], | ||||||||||
| ['html', { outputFile: 'report.html', open: 'never' }], | ||||||||||
| 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 add other projects for different browsers here if needed, e.g.: | ||||||||||
| // { | ||||||||||
| // name: 'firefox', | ||||||||||
| // use: { ...devices['Desktop Firefox'] }, | ||||||||||
| // }, | ||||||||||
| // { | ||||||||||
| // name: 'webkit', | ||||||||||
| // use: { ...devices['Desktop Safari'] }, | ||||||||||
| // }, | ||||||||||
| ], | ||||||||||
| }); | ||||||||||
| }); | ||||||||||
| 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 🐶