-
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.
Merge pull request #1265 from sagely1/AG-1213-add-resource-links
AG-1213 add resource links
- Loading branch information
Showing
4 changed files
with
30 additions
and
6 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
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,23 @@ | ||
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' }); | ||
await expect(link).toHaveText('Visit AMP-PD'); | ||
|
||
// expect url to have ensembleid | ||
await expect(link).toHaveAttribute('href', 'https://target-explorer.amp-pd.org/genes/target-search?gene=ENSG00000178209'); | ||
}); | ||
}); |