Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

56 close button fix tests #57

Merged
merged 4 commits into from
Jul 22, 2024
Merged

56 close button fix tests #57

merged 4 commits into from
Jul 22, 2024

Conversation

ann-kilzer
Copy link
Collaborator

Resolves #56

What changed 🧐

  • Add a close button on mobile viewports
  • Instrument vitest to mock useMediaQuery and test on mobile viewports
  • Fix the failing playwright tests by correctly closing the sidebar

How did you test it? 🧪

New unit tests, e2e tests, manual testing

@ann-kilzer ann-kilzer self-assigned this Jul 17, 2024
@ann-kilzer ann-kilzer requested a review from sirbully as a code owner July 17, 2024 14:23
@@ -29,6 +29,8 @@ export default defineConfig({
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
},
outputDir: './playwright-report',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This will ensure our test results are saved when running in GitHub Actions

@@ -16,7 +16,7 @@ export default defineConfig({
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
retries: process.env.CI ? 2 : 1,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It can be useful to retry once locally, also we will get saved traces

Copy link
Contributor

@sirbully sirbully left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@ann-kilzer ann-kilzer merged commit f63a0db into main Jul 22, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a close button (x) on mobile screen
2 participants