From 83eb7213234f5740ad7c304b32b25b2488e799f8 Mon Sep 17 00:00:00 2001 From: Will Chen Date: Mon, 2 Jun 2025 22:49:02 -0700 Subject: [PATCH] Switch apps e2e (#317) --- e2e-tests/switch_apps.spec.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 e2e-tests/switch_apps.spec.ts diff --git a/e2e-tests/switch_apps.spec.ts b/e2e-tests/switch_apps.spec.ts new file mode 100644 index 0000000..f32b85c --- /dev/null +++ b/e2e-tests/switch_apps.spec.ts @@ -0,0 +1,13 @@ +import { test } from "./helpers/test_helper"; +import { expect } from "@playwright/test"; + +test("switch apps", async ({ po }) => { + await po.setUp(); + await po.sendPrompt("hi"); + const firstAppName = await po.getCurrentAppName(); + + await po.goToAppsTab(); + await po.sendPrompt("second-app"); + const secondAppName = await po.getCurrentAppName(); + expect(secondAppName).not.toBe(firstAppName); +});