fix(e2e): attempt to stabilize super-block-page tests (#57705)

This commit is contained in:
Huyen Nguyen
2024-12-24 00:58:54 +07:00
committed by GitHub
parent 7d6dddedf4
commit 1de979fc03

View File

@@ -80,6 +80,11 @@ test.describe('Super Block Page - Authenticated User', () => {
'/learn/javascript-algorithms-and-data-structures-v8/learn-basic-javascript-by-building-a-role-playing-game/step-2'
);
// Wait for the page to finish loading so that the current challenge ID can be registered.
await expect(
page.getByRole('heading', { name: 'Step 2', level: 1 })
).toBeVisible();
// Go back to the super block page
await page.goto('/learn/javascript-algorithms-and-data-structures-v8');
@@ -206,6 +211,11 @@ test.describe('Super Block Page - Authenticated User', () => {
await page.goto('/learn/full-stack-developer/workshop-blog-page/step-2');
// Wait for the page to finish loading so that the current challenge ID can be registered.
await expect(
page.getByRole('heading', { name: 'Step 2', level: 1 })
).toBeVisible();
// Go back to the super block page
await page.goto('/learn/full-stack-developer');