refresh e2e (#307)

This commit is contained in:
Will Chen
2025-06-02 15:53:06 -07:00
committed by GitHub
parent 46d398b4e9
commit e905e9e10f
4 changed files with 46 additions and 0 deletions

View File

@@ -54,6 +54,22 @@ class PageObject {
await this.page.getByRole("button", { name: "Restart" }).click();
}
async clickPreviewRefresh() {
await this.page.getByTestId("preview-refresh-button").click();
}
async clickPreviewNavigateBack() {
await this.page.getByTestId("preview-navigate-back-button").click();
}
async clickPreviewNavigateForward() {
await this.page.getByTestId("preview-navigate-forward-button").click();
}
async clickPreviewOpenBrowser() {
await this.page.getByTestId("preview-open-browser-button").click();
}
locateLoadingAppPreview() {
return this.page.getByText("Loading app preview...");
}