mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
refactor/simplify playwright tests (#51954)
This commit is contained in:
committed by
GitHub
parent
8e3baa7fe3
commit
f6f00c3d28
@@ -6,10 +6,6 @@ test.beforeEach(async ({ page }) => {
|
||||
await page.goto('/settings');
|
||||
});
|
||||
|
||||
test.afterEach(async ({ page }) => {
|
||||
await page.close();
|
||||
});
|
||||
|
||||
const checkFlashMessageVisibility = async (page: Page, translation: string) => {
|
||||
const flashMessage = page.getByText(translation);
|
||||
await expect(flashMessage).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user