Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardocavazza committed May 31, 2024
1 parent 15a7c5a commit 5b7d15d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ public
!docs/public
docs/.vitepress/dist
docs/.vitepress/cache
test-results
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@
"rimraf": "^5.0.0",
"typescript": "^5.0.0",
"vite": "^5.0.0",
"vitepress": "^1.0.0-rc.25"
"vitepress": "^1.0.0"
}
}
4 changes: 0 additions & 4 deletions test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ test('should do nothing until a context enters', async ({ page }) => {
expect(await getActiveElement(page)).toBe('input2');
await page.keyboard.down('Tab');
expect(await getActiveElement(page)).toBe('button3');
await page.keyboard.down('Tab');
// some browser restart focus on body
// others to the first focusable element
expect(['button1', 'body']).toContain(await getActiveElement(page));
});

test('should should trap a context', async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5163,7 +5163,7 @@ vite@^5.0.0, vite@^5.2.11:
optionalDependencies:
fsevents "~2.3.3"

vitepress@^1.0.0-rc.25:
vitepress@^1.0.0:
version "1.2.2"
resolved "https://registry.npmjs.org/vitepress/-/vitepress-1.2.2.tgz#7680c807ab62ece6edd1cd1ec41f8619860e9ba2"
integrity sha512-uZ3nXR5NY4nYj3RJWCo5jev9qlNZAQo5SUXu1U0QSUx84cUm/o7hCTDVjZ4njVSVui+PsV1oAbdQOg8ygbaf4w==
Expand Down

0 comments on commit 5b7d15d

Please sign in to comment.