Skip to content

Commit

Permalink
Merge pull request #1340 from trilitech/add-eslint-playwright-plugin
Browse files Browse the repository at this point in the history
Add eslint playwright plugin
  • Loading branch information
serjonya-trili authored Jun 5, 2024
2 parents f6d7093 + ddf3085 commit d2dbd17
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,12 @@
"deprecation/deprecation": "off",
},
},
{
"files": "src/e2e/**",
"extends": "plugin:playwright/recommended",
"rules": {
"playwright/no-standalone-expect": "off",
},
},
],
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^28.5.0",
"eslint-plugin-jest-dom": "^5.4.0",
"eslint-plugin-playwright": "^1.6.2",
"eslint-plugin-react": "^7.34.2",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-redux": "^4.1.0",
Expand Down
1 change: 1 addition & 0 deletions src/e2e/steps/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ When("I wait for TZKT to process the updates", async function (this: CustomWorld
const previous = getLastAppliedBlock();

for (;;) {
// eslint-disable-next-line playwright/no-wait-for-timeout
await this.page.waitForTimeout(100);
if (getLastAppliedBlock() !== previous) {
break;
Expand Down
25 changes: 25 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9169,6 +9169,21 @@ __metadata:
languageName: node
linkType: hard

"eslint-plugin-playwright@npm:^1.6.2":
version: 1.6.2
resolution: "eslint-plugin-playwright@npm:1.6.2"
dependencies:
globals: "npm:^13.23.0"
peerDependencies:
eslint: ">=8.40.0"
eslint-plugin-jest: ">=25"
peerDependenciesMeta:
eslint-plugin-jest:
optional: true
checksum: 10/cd3ed38a768f91f37894b8db7d0c6b87d26d49bc548a9fa4f1a1d20f0386570486c16925033938c8f0a56c412409e86f0b6c29832f308dfe13b3237af40d94f9
languageName: node
linkType: hard

"eslint-plugin-react-hooks@npm:^4.6.2":
version: 4.6.2
resolution: "eslint-plugin-react-hooks@npm:4.6.2"
Expand Down Expand Up @@ -10063,6 +10078,15 @@ __metadata:
languageName: node
linkType: hard

"globals@npm:^13.23.0":
version: 13.24.0
resolution: "globals@npm:13.24.0"
dependencies:
type-fest: "npm:^0.20.2"
checksum: 10/62c5b1997d06674fc7191d3e01e324d3eda4d65ac9cc4e78329fa3b5c4fd42a0e1c8722822497a6964eee075255ce21ccf1eec2d83f92ef3f06653af4d0ee28e
languageName: node
linkType: hard

"globalthis@npm:^1.0.1, globalthis@npm:^1.0.3":
version: 1.0.3
resolution: "globalthis@npm:1.0.3"
Expand Down Expand Up @@ -15648,6 +15672,7 @@ __metadata:
eslint-plugin-import: "npm:^2.29.1"
eslint-plugin-jest: "npm:^28.5.0"
eslint-plugin-jest-dom: "npm:^5.4.0"
eslint-plugin-playwright: "npm:^1.6.2"
eslint-plugin-react: "npm:^7.34.2"
eslint-plugin-react-hooks: "npm:^4.6.2"
eslint-plugin-react-redux: "npm:^4.1.0"
Expand Down

1 comment on commit d2dbd17

@github-actions
Copy link

Choose a reason for hiding this comment

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

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 89.49% 3669/4100
🟢 Branches 81.78% 1270/1553
🟢 Functions 87.72% 1114/1270
🟢 Lines 89.41% 3471/3882

Test suite run success

1438 tests passing in 186 suites.

Report generated by 🧪jest coverage report action from d2dbd17

Please sign in to comment.