Skip to content

Commit dd155ea

Browse files
committed
Get page from context
1 parent ceeeb1d commit dd155ea

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

e2e/events.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ test.beforeEach(async ({ page }) => {
77
test.describe('Test if see more link is clickable', () => {
88
test('should navigate to the correct URL when See More is clicked', async ({
99
page,
10+
context,
1011
}) => {
1112
const [newPage] = await Promise.all([
12-
page.waitForEvent('popup'),
13+
context.waitForEvent('page'),
1314
page.locator('#events >> text="See More"').click(),
1415
]);
1516
await expect(newPage).toHaveURL(

0 commit comments

Comments
 (0)