Rename app E2E (#315)

This commit is contained in:
Will Chen
2025-06-02 22:46:35 -07:00
committed by GitHub
parent a44a9783c1
commit 5802c39825
3 changed files with 65 additions and 1 deletions

View File

@@ -256,12 +256,21 @@ class PageObject {
if (!currentAppName) {
throw new Error("No current app name found");
}
return path.join(this.userDataDir, "dyad-apps", currentAppName);
return this.getAppPath({ appName: currentAppName });
}
getAppPath({ appName }: { appName: string }) {
return path.join(this.userDataDir, "dyad-apps", appName);
}
async clickAppListItem({ appName }: { appName: string }) {
await this.page.getByTestId(`app-list-item-${appName}`).click();
}
async clickAppDetailsRenameAppButton() {
await this.page.getByTestId("app-details-rename-app-button").click();
}
async clickAppDetailsMoreOptions() {
await this.page.getByTestId("app-details-more-options-button").click();
}