Fix stale app UI (supabase) & overall E2E test infra improvements (#337)

Fixes #269
This commit is contained in:
Will Chen
2025-06-04 23:07:59 -07:00
committed by GitHub
parent 7f410ce830
commit 16bf0828f5
21 changed files with 203 additions and 96 deletions

View File

@@ -0,0 +1,25 @@
import { testSkipIfWindows } from "./helpers/test_helper";
// https://github.com/dyad-sh/dyad/issues/269
testSkipIfWindows("supabase - stale ui", async ({ po }) => {
await po.setUp();
await po.sendPrompt("tc=add-supabase");
await po.snapshotMessages();
await po.page.getByText("Set up supabase").click();
// On app details page:
await po.clickConnectSupabaseButton();
// TODO: for some reason on Windows this navigates to the main (apps) page,
// rather than the original chat page, so this test is skipped on Windows.
// However, the underlying issue is platform-agnostic, so it seems OK to test
// only on Mac.
await po.clickBackButton();
// On chat page:
await po.snapshotMessages();
// Create a second app; do NOT integrate it with Supabase, and make sure UI is correct.
await po.goToAppsTab();
await po.sendPrompt("tc=add-supabase");
await po.snapshotMessages();
});