Skip to content

Commit 5e880ec

Browse files
authored
Add auth
1 parent c448e53 commit 5e880ec

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

ui-tests/tests/jupytereverywhere.spec.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,18 @@ test.describe('General', () => {
6767
});
6868

6969
test('Should load a read-only notebook', async ({ page }) => {
70+
await page.route('**/api/v1/auth/issue', async route => {
71+
const json = { token: 'test-token' };
72+
await route.fulfill({ json });
73+
});
74+
7075
await page.route('**/api/v1/notebooks/*', async route => {
71-
const json = [
72-
{
73-
id: 'dummy-notebook-id',
74-
domain_id: 'domain',
75-
readable_id: null,
76-
content: TEST_NOTEBOOK
77-
}
78-
];
76+
const json = {
77+
id: 'dummy-notebook-id',
78+
domain_id: 'domain',
79+
readable_id: null,
80+
content: TEST_NOTEBOOK
81+
};
7982
await route.fulfill({ json });
8083
});
8184

0 commit comments

Comments
 (0)