Skip to content

Commit

Permalink
#1337 fix test private pages
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsimpson committed Jun 4, 2024
1 parent 1464bcd commit 200f687
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ test("@334@shop-owner@Creating Private Page @334-shop-owner-create-private-page"
await set_test_name_cookie(page, "@334-shop-owner-create-private-page");
await page.goto('/page/privatetestpage');
await new Promise(x => setTimeout(x, 5000));
let checking_private_page_content = await page.evaluate(() => document.body.textContent);
if (checking_private_page_content.indexOf("This is a Private Page") > -1) {
expect(await page.screenshot()).toMatchSnapshot('Private-page-already-checked.png');
console.log("Private plan already set, exiting test");
test.skip();
}

console.log("Continuing with Private page creation");
await page.goto('/pages/add-page');
Expand Down Expand Up @@ -59,4 +53,4 @@ test("@334@shop-owner@Creating Private Page @334-shop-owner-create-private-page"
else {
console.log("Private Page not avaliable for the public.(Succeded)");
}
});
});

0 comments on commit 200f687

Please sign in to comment.