Skip to content

Commit

Permalink
Add test for file creation
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmooney committed Jul 29, 2024
1 parent 40c3560 commit 0bb493d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions ui-tests/tests/new-file.spec.ts
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();
});
});

0 comments on commit 0bb493d

Please sign in to comment.