From a79b72e1346197afa7fdd95b897dc7293fd90dcd Mon Sep 17 00:00:00 2001 From: krassowski <5832902+krassowski@users.noreply.github.com> Date: Thu, 16 May 2024 13:55:57 +0100 Subject: [PATCH] Add a test for extension showing up in the Settings Editor right away --- ui-tests/tests/settings_editor.spec.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ui-tests/tests/settings_editor.spec.ts diff --git a/ui-tests/tests/settings_editor.spec.ts b/ui-tests/tests/settings_editor.spec.ts new file mode 100644 index 0000000..d50eee3 --- /dev/null +++ b/ui-tests/tests/settings_editor.spec.ts @@ -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); + }); +});