Skip to content

Commit

Permalink
Add a test for extension showing up in the Settings Editor right away
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed May 16, 2024
1 parent 7ebb8dc commit a79b72e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ui-tests/tests/settings_editor.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { expect, test } from '@jupyterlab/galata';

test.describe('Settings Editor', () => {
test('Execute Time show up in the Settings Editor', async ({ page }) => {
await page.evaluate(async () => {
await window.jupyterapp.commands.execute('settingeditor:open');
});
const plugin = page.locator(
'.jp-PluginList .jp-PluginList-entry >> text="Execute Time"'
);

expect(plugin).toHaveCount(1);

Check failure on line 12 in ui-tests/tests/settings_editor.spec.ts

View workflow job for this annotation

GitHub Actions / Integration tests

tests/settings_editor.spec.ts:4:7 › Settings Editor › Execute Time show up in the Settings Editor

1) tests/settings_editor.spec.ts:4:7 › Settings Editor › Execute Time show up in the Settings Editor Error: expect(locator).toHaveCount(expected) Locator: locator('.jp-PluginList .jp-PluginList-entry').locator('text="Execute Time"') Expected: 1 Received: 0 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('.jp-PluginList .jp-PluginList-entry').locator('text="Execute Time"') - locator resolved to 0 elements - unexpected value "0" 10 | ); 11 | > 12 | expect(plugin).toHaveCount(1); | ^ 13 | }); 14 | }); 15 | at /home/runner/work/jupyterlab-execute-time/jupyterlab-execute-time/ui-tests/tests/settings_editor.spec.ts:12:20

Check failure on line 12 in ui-tests/tests/settings_editor.spec.ts

View workflow job for this annotation

GitHub Actions / Integration tests

tests/settings_editor.spec.ts:4:7 › Settings Editor › Execute Time show up in the Settings Editor

1) tests/settings_editor.spec.ts:4:7 › Settings Editor › Execute Time show up in the Settings Editor Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveCount(expected) Locator: locator('.jp-PluginList .jp-PluginList-entry').locator('text="Execute Time"') Expected: 1 Received: 0 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('.jp-PluginList .jp-PluginList-entry').locator('text="Execute Time"') - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" 10 | ); 11 | > 12 | expect(plugin).toHaveCount(1); | ^ 13 | }); 14 | }); 15 | at /home/runner/work/jupyterlab-execute-time/jupyterlab-execute-time/ui-tests/tests/settings_editor.spec.ts:12:20
});
});

0 comments on commit a79b72e

Please sign in to comment.