-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { test, expect } from '@playwright/test'; | ||
|
||
test.describe('specific viewport block', () => { | ||
test.use({ viewport: { width: 1600, height: 1200 } }); | ||
|
||
test('has title', async ({ page }) => { | ||
await page.goto('/genes/ENSG00000178209/resources'); | ||
|
||
// Expect a title "to contain" a substring. | ||
await expect(page).toHaveTitle('Agora'); | ||
}); | ||
|
||
test('AMP-PD explorer link to go to gene', async ({ page }) => { | ||
await page.goto('/genes/ENSG00000178209/resources'); | ||
|
||
// expect link named 'Visit AMP-PD' | ||
const link = page.getByRole('link', { name: 'Visit AMP-PD' }); | ||
expect(await link.innerText()).toBe('Visit AMP-PD'); | ||
|
||
// expect url to have ensembleid | ||
const url = await link.getAttribute('href'); | ||
expect(url).toBe('https://target-explorer.amp-pd.org/genes/target-search?gene=ENSG00000178209'); | ||
}); | ||
}); |