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
@@ -35,10 +35,6 @@ test.beforeAll(async ({ browser }) => {
|
||||
await page.goto('/');
|
||||
});
|
||||
|
||||
test.afterAll(async () => {
|
||||
await page.close();
|
||||
});
|
||||
|
||||
test('The component Landing-top renders correctly', async () => {
|
||||
const landingHeading1 = page.getByTestId('landing-big-heading-1');
|
||||
await expect(landingHeading1).toHaveText('Learn to code — for free.');
|
||||
|
||||
Reference in New Issue
Block a user