Skip to content

Commit

Permalink
add step about workspace trust
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek committed Oct 27, 2024
1 parent 7f9a9dd commit b44d802
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions codeserver/e2e/tests/example.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b44d802

Please sign in to comment.