-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup Playwright tests, misc fixes (#4)
Note that the diff here is a pain because I had to do a bulk `chmod` due to a playwright setup command messing with a bunch of file permissions, and couldn't find a way to reset the permissions to their defaults (pre-playwright-command) without going through one file at a time. - pull in various improvements from krishnanlab/geneplexus-app-v2#37 and krishnanlab/geneplexus-app-v2#38 - update test workflow: fix trigger, update action versions, update debugging steps, add e2e playwright testing with caching - setup playwright for e2e and accessibility testing - add status indicator to analysis card component - enable msw network request mocking - don't allow empty "lookup analysis" - install and setup axe-core (library that powers chrome dev tools' lighthouse accessibility check) - check all major pages of app (so far) for accessibility issues - add basic e2e test for demonstration
- Loading branch information
1 parent
984e6f8
commit cff0650
Showing
144 changed files
with
899 additions
and
681 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
node_modules | ||
dist | ||
mockServiceWorker.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
{ | ||
"recommendations": [ | ||
"steoates.autoimport", | ||
"christian-kohler.path-intellisense", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"pflannery.vscode-versionlens", | ||
"yoavbls.pretty-ts-errors", | ||
"streetsidesoftware.code-spell-checker" | ||
// "eamodio.gitlens", | ||
// "bennycode.sort-everything", | ||
// "ms-vscode.live-server", | ||
// "christian-kohler.path-intellisense", | ||
// "Tyriar.sort-lines", | ||
// "nmsmith89.incrementor", | ||
// "janisdd.vscode-edit-csv", | ||
] | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import path from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
import prettier from "eslint-plugin-prettier"; | ||
import reactRefresh from "eslint-plugin-react-refresh"; | ||
import globals from "globals"; | ||
import { fixupConfigRules } from "@eslint/compat"; | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
import js from "@eslint/js"; | ||
import tsParser from "@typescript-eslint/parser"; | ||
|
||
const compat = new FlatCompat({ | ||
baseDirectory: path.dirname(fileURLToPath(import.meta.url)), | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all, | ||
}); | ||
|
||
export default [ | ||
{ | ||
ignores: ["dist", "**/mockServiceWorker.js"], | ||
}, | ||
...fixupConfigRules( | ||
compat.extends( | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/stylistic", | ||
"plugin:react-hooks/recommended", | ||
"plugin:jsx-a11y/recommended", | ||
), | ||
), | ||
{ | ||
plugins: { | ||
"react-refresh": reactRefresh, | ||
prettier, | ||
}, | ||
languageOptions: { | ||
globals: globals.browser, | ||
parser: tsParser, | ||
}, | ||
rules: { | ||
"prettier/prettier": "warn", | ||
"prefer-const": ["error", { destructuring: "all" }], | ||
"@typescript-eslint/no-unused-vars": ["warn", { caughtErrors: "none" }], | ||
"@typescript-eslint/consistent-type-definitions": ["error", "type"], | ||
"@typescript-eslint/consistent-type-imports": "error", | ||
"react-refresh/only-export-components": ["off"], | ||
"jsx-a11y/no-noninteractive-tabindex": ["error", { tags: ["pre"] }], | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.