Skip to content

Commit

Permalink
Merge pull request #319 from acs3ss/accessibility-tests
Browse files Browse the repository at this point in the history
Add accessibility tests
  • Loading branch information
winstliu authored Jul 23, 2023
2 parents 5382780 + 90b7df5 commit 11c1f66
Show file tree
Hide file tree
Showing 6 changed files with 231 additions and 158 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ updates:
typescript-eslint:
patterns:
- "@typescript-eslint/*"
playwright:
patterns:
- "@playwright/*"
- "playwright"

- package-ecosystem: "github-actions"
directory: "/"
Expand Down
87 changes: 52 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"vue": "^3.3.4"
},
"devDependencies": {
"@axe-core/playwright": "^4.7.3",
"@fullhuman/postcss-purgecss": "^5.0.0",
"@playwright/test": "^1.36.1",
"@testing-library/vue": "^7.0.0",
Expand All @@ -40,7 +41,7 @@
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.15.1",
"jsdom": "^22.1.0",
"playwright": "^1.35.1",
"playwright": "^1.36.1",
"prettier": "^2.8.8",
"sass": "^1.63.6",
"typescript": "^5.1.6",
Expand Down
6 changes: 4 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
<Hand :hand="hand" @hand-updated="updateHand" />
<Solutions :solutions="solutions" @redraw="redraw" />
<main>
<Hand :hand="hand" @hand-updated="updateHand" />
<Solutions :solutions="solutions" @redraw="redraw" />
</main>
<footer class="text-center mt-auto mb-3">
<small>
By
Expand Down
12 changes: 8 additions & 4 deletions src/ReloadPrompt.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ const { needRefresh, updateServiceWorker } = useRegisterSW({
<div
v-if="needRefresh"
class="toast position-fixed bottom-0 end-0 m-3 rounded show"
role="alert"
aria-live="assertive"
role="dialog"
aria-labelledby="toast-title"
aria-describedby="toast-description"
aria-live="polite"
aria-atomic="true"
>
<div class="toast-header">
<strong class="me-auto">Updates available</strong>
<strong id="toast-title" class="me-auto">Updates available</strong>
<button
type="button"
class="btn-close"
Expand All @@ -31,7 +33,9 @@ const { needRefresh, updateServiceWorker } = useRegisterSW({
></button>
</div>
<div class="toast-body">
<div class="mb-3">Reload to get the latest changes!</div>
<div id="toast-description" class="mb-3">
Reload to get the latest changes!
</div>
<button
type="button"
class="btn btn-primary"
Expand Down
Loading

0 comments on commit 11c1f66

Please sign in to comment.