-
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 #1299 from sagely1/AG-1399-unknown-ensg-hanging
AG-1399 fix invalid ensg in url from hanging
- Loading branch information
Showing
8 changed files
with
85 additions
and
39 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
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,17 @@ | ||
import { test, expect } from '@playwright/test'; | ||
|
||
test.describe('specific viewport block', () => { | ||
test.slow(); | ||
test.use({ viewport: { width: 1600, height: 1200 } }); | ||
|
||
test('invalid gene results in a 404 redirect', async ({ page }) => { | ||
// go to invalid ENSG page | ||
await page.goto('/genes/ENSG00000000000'); | ||
|
||
// expect a title "to contain" a substring. | ||
await expect(page).toHaveTitle('Agora'); | ||
|
||
// expect div for page not found content to be visible | ||
expect(page.locator('.page-not-found')).toBeVisible(); | ||
}); | ||
}); |
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,17 @@ | ||
import { test, expect } from '@playwright/test'; | ||
|
||
test.describe('specific viewport block', () => { | ||
test.slow(); | ||
test.use({ viewport: { width: 1600, height: 1200 } }); | ||
|
||
test('invalid gene results in a 404 redirect', async ({ page }) => { | ||
// go to invalid ENSG page | ||
await page.goto('/genes/ENSG00000000000/similar'); | ||
|
||
// expect a title "to contain" a substring. | ||
await expect(page).toHaveTitle('Agora'); | ||
|
||
// expect div for page not found content to be visible | ||
expect(page.locator('.page-not-found')).toBeVisible(); | ||
}); | ||
}); |