Delete app E2E (#313)

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Will Chen
2025-06-02 22:06:21 -07:00
committed by GitHub
parent 667fc42af4
commit 1dde72e776
4 changed files with 47 additions and 2 deletions

View File

@@ -232,6 +232,10 @@ class PageObject {
return this.page.getByTestId("title-bar-app-name-button");
}
getAppListItem({ appName }: { appName: string }) {
return this.page.getByTestId(`app-list-item-${appName}`);
}
async getCurrentAppName() {
return (await this.getTitleBarAppNameButton().textContent())?.replace(
"App: ",
@@ -246,6 +250,13 @@ class PageObject {
}
return path.join(this.userDataDir, "dyad-apps", currentAppName);
}
async clickAppListItem({ appName }: { appName: string }) {
await this.page.getByTestId(`app-list-item-${appName}`).click();
}
async clickAppDetailsMoreOptions() {
await this.page.getByTestId("app-details-more-options-button").click();
}
////////////////////////////////
// Settings related