generated from cfpb/open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[e2e] unavailableApis.spec - Refactor + add extended timeouts (#1004)
Part of #987 ## Changes - [e2e] Unavailable APIs - Refactored to make the tests easier to read and reduce code duplication (`verifyApiBlockThenUnblock()`) - Added timeouts to enable test to consistently pass ## How to test this PR 1. Start `sbl-frontend`: `yarn start` 2. Open Playwright: `yarn playwright test --ui --workers 1` 3. Run test `filing-app` -> `unavailableApis.spec.ts` twice 4. Confirm it passes consistently ## Screenshots <img width="371" alt="Screenshot 2024-10-16 at 3 19 23 PM" src="https://github.com/user-attachments/assets/844013ed-8bd2-43e4-bbc4-5e65e8e23127"> <img width="835" alt="Screenshot 2024-10-16 at 3 22 14 PM" src="https://github.com/user-attachments/assets/56e9f645-feb1-478c-8601-9a83f7ad533c"> ## Notes - TODO (Future PR): Utilize `e2e/utils/timeoutConstants.ts` in more tests to reduce one-off timeout values --------- Co-authored-by: Tanner Ricks <[email protected]>
- Loading branch information
1 parent
ae4a220
commit 4a12d6c
Showing
3 changed files
with
90 additions
and
100 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
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,7 @@ | ||
export const TIMEOUT_XXS = 500; | ||
export const TIMEOUT_XS = 1000; | ||
export const TIMEOUT_SM = 10_000; | ||
export const TIMEOUT_MD = 30_000; | ||
export const TIMEOUT_LG = 60_000; | ||
export const TIMEOUT_XL = 120_000; | ||
export const TIMEOUT_XXL = 180_000; |