Import e2e (#311)

This commit is contained in:
Will Chen
2025-06-02 21:39:51 -07:00
committed by GitHub
parent 4997a8f2ff
commit 667fc42af4
31 changed files with 2513 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ class PageObject {
private userDataDir: string;
constructor(
public electronApp: ElectronApplication,
public page: Page,
{ userDataDir }: { userDataDir: string },
) {
@@ -243,7 +244,7 @@ class PageObject {
if (!currentAppName) {
throw new Error("No current app name found");
}
return path.join("/tmp", "dyad-apps-test", currentAppName);
return path.join(this.userDataDir, "dyad-apps", currentAppName);
}
////////////////////////////////
@@ -358,7 +359,7 @@ export const test = base.extend<{
async ({ electronApp }, use) => {
const page = await electronApp.firstWindow();
const po = new PageObject(page, {
const po = new PageObject(electronApp, page, {
userDataDir: (electronApp as any).$dyadUserDataDir,
});
await use(po);