-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix issue with new file * Add test for file creation
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { expect, test } from '@jupyterlab/galata'; | ||
|
||
test.describe('#newFile', () => { | ||
test.afterEach(async ({ page }) => { | ||
await page.activity.closeAll(); | ||
}); | ||
|
||
test('New file should open with no errors', async ({ page }) => { | ||
await page | ||
.getByLabel('notebook content') | ||
.getByText('New JGIS File') | ||
.click(); | ||
|
||
const tab = page.getByLabel('notebook content'); | ||
const sources = page.getByText('Sources', { exact: true }); | ||
const layers = page.getByText('Layers'); | ||
const map = page.getByLabel('Map'); | ||
|
||
await expect(tab).toBeVisible(); | ||
await expect(sources).toBeVisible(); | ||
await expect(layers).toBeVisible(); | ||
await expect(map).toBeVisible(); | ||
}); | ||
}); |