Skip to content

Commit d6d6ccb

Browse files
committed
feat: adds events section changes
1 parent 7db9cfd commit d6d6ccb

16 files changed

Lines changed: 111 additions & 104 deletions

e2e/events.spec.ts

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,20 @@ test.beforeEach(async ({ page }) => {
66

77

88
test.describe('Test if see more link is clickable', () => {
9-
test('should show react dev community page', async ({ page }) => {
10-
test.slow();
11-
const linkName = await page.locator('div.see-more-div')
12-
await linkName.click();
13-
const title = await page.locator('div.name').nth(1)
14-
await expect(title).toBeTruthy();
9+
test('should navigate to the correct URL when See More is clicked', async ({
10+
page,
11+
}) => {
12+
const [newPage] = await Promise.all([
13+
page.waitForEvent('popup'),
14+
page.locator('#events >> text="See More"').click()
15+
]);
16+
await expect(newPage).toHaveURL(
17+
'https://kommunity.com/reactjs-developer-community-kenya-reactdevske/events'
18+
);
1519
});
20+
1621
});
1722

1823

19-
test.describe('Test if see more link exists', () => {
20-
test('should show See More', async ({ page }) => {
21-
await page.waitForNavigation();
22-
const linkName = page.locator('div.see-more-div');
23-
await expect(linkName).toBeTruthy();
2424

25-
});
26-
});
2725

public/images/Rectangle 31.png

-81.6 KB
Binary file not shown.

public/images/Rectangle 34.png

-93.5 KB
Binary file not shown.

public/images/Rectangle 36.png

-96.2 KB
Binary file not shown.

public/images/Rectangle 40.png

-45.4 KB
Binary file not shown.

public/images/Rectangle 41.png

-94.7 KB
Binary file not shown.

public/images/Rectangle 42.png

-91.8 KB
Binary file not shown.
325 KB
Loading

public/images/no-image.jpeg

38 KB
Loading

public/images/physical_meetup.jpg

232 KB
Loading

0 commit comments

Comments
 (0)