Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
bdaea0d
Update .eslintrc.json
amarilda611 Jun 21, 2025
157ef2b
Update playwright.config.js
amarilda611 Jun 21, 2025
94f40ba
Update playwright.yml
amarilda611 Jun 21, 2025
5cef3a8
Docs: Publish Playwright screenshots for PR #93 [skip ci]
github-actions[bot] Jun 21, 2025
2fda743
Update package.json
amarilda611 Jun 21, 2025
499a2e5
Update package.json
amarilda611 Jun 21, 2025
3d7203e
Update playwright.yml
amarilda611 Jun 21, 2025
f2c4608
Docs: Publish Playwright screenshots for PR #93 [skip ci]
github-actions[bot] Jun 21, 2025
48455ed
Create tsconfig.json
amarilda611 Jun 21, 2025
3780e42
Update playwright.yml
amarilda611 Jun 21, 2025
71a2ce1
Docs: Publish Playwright screenshots for PR #93 [skip ci]
github-actions[bot] Jun 21, 2025
a872fc7
Update tsconfig.json
amarilda611 Jun 21, 2025
32c44f7
Update playwright.config.js
amarilda611 Jun 22, 2025
041378b
Update .eslintrc.json
amarilda611 Jun 22, 2025
9967096
Update playwright.yml
amarilda611 Jun 22, 2025
3280020
Update playwright.yml
amarilda611 Jun 22, 2025
8181bb4
Update playwright.config.js
amarilda611 Jun 22, 2025
b411d56
Update playwright.yml
amarilda611 Jun 22, 2025
557a2c7
Docs: Publish Playwright screenshots for PR #93 [skip ci]
github-actions[bot] Jun 22, 2025
67c6a69
Update playwright.yml
amarilda611 Jun 22, 2025
b6c96ce
Update playwright.yml
amarilda611 Jun 22, 2025
57d2e2d
Docs: Publish Playwright screenshots for PR #93 [skip ci]
github-actions[bot] Jun 22, 2025
5e1cd48
Update playwright.yml
amarilda611 Jun 22, 2025
da61be8
Update playwright.yml
amarilda611 Jun 22, 2025
64f0591
Update playwright.yml
amarilda611 Jun 22, 2025
216fe48
Update playwright.yml
amarilda611 Jun 22, 2025
c5a645d
Update playwright.yml
amarilda611 Jun 22, 2025
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
22 changes: 14 additions & 8 deletions .eslintrc.json
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"
],
Comment on lines +4 to +10
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[prettier] reported by reviewdog 🐶

Suggested change
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"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
}
}
291 changes: 220 additions & 71 deletions .github/workflows/playwright.yml

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/pr/93/screenshots/test-finished-1.png
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
"homepage": "https://github.com/DigitalProductInnovationAndDevelopment/Code-Reviews-of-GUI-Tests#readme",
"devDependencies": {
"@playwright/test": "^1.52.0",
"eslint": "^8.0.0"
"eslint": "^8.0.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0"
}
}
45 changes: 33 additions & 12 deletions playwright.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,37 @@
const { defineConfig } = require('@playwright/test');
// playwright.config.js
import { defineConfig, devices } from '@playwright/test';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[prettier] reported by reviewdog 🐶

Suggested change
import { defineConfig, devices } from '@playwright/test';
import { defineConfig, devices } from "@playwright/test";


module.exports = defineConfig({
testDir: './tests',
export default defineConfig({
testDir: "./tests",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: [
// Corrected to output HTML report to a subfolder within published-screenshots
// This should fix the 'published-screenshots/html/' not found warning.
["html", { open: "never", outputFolder: "published-screenshots/html" }],
// Ensure JSON report is also in published-screenshots
["json", { outputFile: "published-screenshots/results.json" }]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[prettier] reported by reviewdog 🐶

Suggested change
["json", { outputFile: "published-screenshots/results.json" }]
["json", { outputFile: "published-screenshots/results.json" }],

],
use: {
headless: true,
screenshot: 'on',
trace: 'on',
video: 'off',
ignoreHTTPSErrors: true,
trace: "on-first-retry",
headless: true, // Playwright runs headless by default in CI
screenshot: "on", // Takes screenshots on failure or specific steps
},
reporter: [
['json', { outputFile: 'playwright-metrics.json' }],
['html', { outputFile: 'report.html', open: 'never' }],
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
// You can add other projects for different browsers here if needed, e.
// {
// name: "firefox",
// use: { ...devices["Desktop Firefox"] },
// },
// {
// name: "webkit",
// use: { ...devices["Desktop Safari"] },
// },
],
});
});
18 changes: 18 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "CommonJS",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
// If your tests use JSX (e.g., for React components), uncomment the line below:
// "jsx": "react-jsx",
"resolveJsonModule": true,
"isolatedModules": true,
"allowJs": true,
"checkJs": true
},
"include": ["tests/**/*.ts", "tests/**/*.js"], // Changed this line
"exclude": ["node_modules"] // Changed this line
}
Loading