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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user