Rename app E2E (#315)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user