diff --git a/tests/e2e/authenticate.spec.ts b/tests/e2e/authenticate.spec.ts new file mode 100644 index 000000000..f9991d16d --- /dev/null +++ b/tests/e2e/authenticate.spec.ts @@ -0,0 +1,17 @@ +import { test, expect } from "@tests/support/fixtures.js"; + +test("removing identities from ssh-agent and re-adding them", async ({ + page, + peer, +}) => { + await page.goto("/"); + await expect(page.getByText("palm")).toBeVisible(); + + await peer.logOut(); + await expect( + page.getByText("Not able to find your keys in the ssh agent"), + ).toBeVisible(); + + await peer.authenticate(); + await expect(page.getByText("palm")).toBeVisible(); +});