Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-buckley authored Sep 16, 2024
2 parents 3b34702 + 28a489e commit ab8d332
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ test("Test that Cmfive Admin handles templates", async ({ page, isMobile }) => {
await expect(templateTestPage.getByText("Test Company")).toBeVisible();
});


test("Test that Cmfive Admin handles bad templates", async ({ page, isMobile }) => {
test.setTimeout(GLOBAL_TIMEOUT);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,12 @@ export class AdminHelper {
return page.url().split("/admin-templates/edit/")[1].split("#")[0];
}


static async viewTemplate(page: Page, isMobile: boolean, templateTitle: string, templateID: string): Promise<void>
{
if (page.url() != HOST + "/admin-templates/edit/" + templateID + "#details") {
if(page.url() != HOST + "/admin-templates")
await CmfiveHelper.clickCmfiveNavbar(page, isMobile, "Admin", "Templates");
await CmfiveHelper.clickCmfiveNavbar(page, "Admin", "Templates");

await CmfiveHelper.getRowByText(page, templateTitle).getByRole("button", {name: "Edit"}).click();
}
Expand Down

0 comments on commit ab8d332

Please sign in to comment.