File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -21,19 +21,11 @@ test.describe('Community Kotlin User Groups page', () => {
21
21
await expect ( page . url ( ) ) . toContain ( '/docs/kug-guidelines.html' ) ;
22
22
} ) ;
23
23
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 } ) => {
26
25
const startKugButton = page . getByRole ( 'link' , { name : 'Start a New KUG' } ) ;
27
26
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' ) ;
37
29
} ) ;
38
30
39
31
test ( 'Write to us button on the KUGs page contains the related e-mail' , async ( { page } ) => {
You can’t perform that action at this time.
0 commit comments