create next.js e2e test (#305)
This commit is contained in:
@@ -50,6 +50,10 @@ class PageObject {
|
||||
await this.page.getByTestId("reject-proposal-button").click();
|
||||
}
|
||||
|
||||
async clickRestart() {
|
||||
await this.page.getByRole("button", { name: "Restart" }).click();
|
||||
}
|
||||
|
||||
getPreviewIframeElement() {
|
||||
return this.page.getByTestId("preview-iframe-element");
|
||||
}
|
||||
@@ -196,6 +200,14 @@ class PageObject {
|
||||
await this.page.getByRole("link", { name: "Apps" }).click();
|
||||
}
|
||||
|
||||
async goToHubTab() {
|
||||
await this.page.getByRole("link", { name: "Hub" }).click();
|
||||
}
|
||||
|
||||
async selectTemplate(templateName: string) {
|
||||
await this.page.getByRole("img", { name: templateName }).click();
|
||||
}
|
||||
|
||||
////////////////////////////////
|
||||
// Toast assertions
|
||||
////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user