mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-28 06:08:13 -05:00
Fix E2E tests (#2640)
This commit is contained in:
17
.github/pull_request_template.md
vendored
17
.github/pull_request_template.md
vendored
@@ -1,17 +0,0 @@
|
||||
*If you are not adding a badge just clear this template*
|
||||
|
||||
## Badge adding checklist
|
||||
|
||||
Please check each and mark with "x" to indicate you have verified that requirement. This allows for more seamless badge reviews, thank you!
|
||||
|
||||
- [ ] The `.avif` file is static, not animated (generate it from the .png)
|
||||
- [ ] Rotation of animation is counterclockwise
|
||||
- [ ] Rotation is of correct speed (around 3 seconds for full round)
|
||||
- [ ] Badge is centered both vertically and horizontally
|
||||
- [ ] Badge is zoomed in enough (not too much blank space around it)
|
||||
|
||||
For full list of requirements that need to bet met for the badge to be added please check the instructions in /docs/badges.md file.
|
||||
|
||||
---
|
||||
|
||||
<!-- Add more info/context here if you want -->
|
||||
@@ -1,3 +1,5 @@
|
||||
import { IS_E2E_TEST_RUN } from "~/utils/e2e";
|
||||
|
||||
/**
|
||||
* List of seasons with their respective start and end dates.
|
||||
*
|
||||
@@ -15,6 +17,7 @@
|
||||
export const list =
|
||||
// when we do npm run setup NODE_ENV is not set -> use test seasons
|
||||
!process.env.NODE_ENV ||
|
||||
IS_E2E_TEST_RUN ||
|
||||
// this gets checked when the project is running
|
||||
(process.env.NODE_ENV === "development" &&
|
||||
import.meta.env.VITE_PROD_MODE !== "true")
|
||||
|
||||
@@ -15,7 +15,6 @@ test.describe("Tier List Maker", () => {
|
||||
// Test that toggles are clickable (just verify they work)
|
||||
await page.getByText("Allow duplicates").click();
|
||||
await page.getByText("Show tier headers").click();
|
||||
await page.getByText("Show arrow controls").click();
|
||||
await page.getByText("Hide alt kits").click();
|
||||
await page.getByText("Hide alt skins").click();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user