Skip to content

Commit 77eb043

Browse files
committed
Fixed a test with the "Start a New KUG button".
1 parent 044d90b commit 77eb043

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

test/production/community-kotlin-user-groups.spec.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,11 @@ test.describe('Community Kotlin User Groups page', () => {
2121
await expect(page.url()).toContain('/docs/kug-guidelines.html');
2222
});
2323

24-
// The test fails in case we click on the link (it has some additional parameters). To investigate the link after click.
25-
test('Start a New KUG button opens the related page', async ({ page, context }) => {
24+
test('Start a New KUG button opens the related page', async ({ page }) => {
2625
const startKugButton = page.getByRole('link', { name: 'Start a New KUG' });
2726
await expect(startKugButton).toBeVisible();
28-
// const newPagePromise = context.waitForEvent('page');
29-
// await startKugButton.click();
30-
// const newPage = await newPagePromise;
31-
// await newPage.waitForLoadState();
32-
// await expect(newPage.url()).toContain('https://surveys.jetbrains.com/s3/submit-a-local-kotlin-user-group');
33-
34-
// The test passes in case we don't click on this link.
35-
const href = await startKugButton.getAttribute('href');
36-
expect(href).toBe('https://surveys.jetbrains.com/s3/submit-a-local-kotlin-user-group');
27+
await startKugButton.click();
28+
await expect(page.url()).toContain('https://surveys.jetbrains.com/s3/submit-a-local-kotlin-user-group');
3729
});
3830

3931
test('Write to us button on the KUGs page contains the related e-mail', async ({ page }) => {

0 commit comments

Comments
 (0)