From b44d802f92c71053169ecc944169aac0eb2f9af2 Mon Sep 17 00:00:00 2001 From: Jiri Danek Date: Sun, 27 Oct 2024 23:57:35 +0100 Subject: [PATCH] add step about workspace trust --- codeserver/e2e/tests/example.spec.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/codeserver/e2e/tests/example.spec.ts b/codeserver/e2e/tests/example.spec.ts index d1b3c762f..0217847a6 100644 --- a/codeserver/e2e/tests/example.spec.ts +++ b/codeserver/e2e/tests/example.spec.ts @@ -81,6 +81,11 @@ test('use the terminal', async ({codeServer, page}, testInfo) => { expect(await isEditorVisible(page)).toBe(true) }) + await test.step("should accept the workspace trust dialog", async () => { + await expect(page.getByText("Do you trust the authors of the files in this folder?")).toBeVisible() + await page.getByRole('button', { name: 'Yes, I trust the authors' }).click(); + }) + await test.step("should show the Integrated Terminal", async () => { await codeServer.focusTerminal() expect(await page.isVisible("#terminal")).toBe(true)