From c35ab783a7bddf45a01b5696765152ed3e5e4998 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Thu, 21 Nov 2024 10:29:24 +0100 Subject: [PATCH] Add tests to verify authenticated identities --- tests/e2e/authenticate.spec.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/e2e/authenticate.spec.ts 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(); +});