Skip to content

Commit

Permalink
fix: condition to check if restrict owner is not visible
Browse files Browse the repository at this point in the history
  • Loading branch information
kielllll committed Nov 26, 2024
1 parent b7ecf7f commit b62ce47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/advanced-checks/pdf-restriction.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ test("should redirect to WP login page if 'Restrict Owner' is enabled", async (t
// Navigate to pdf info
await t.click(Selector('td.name').find('a').withText('Sample'));
// check if it's publicly accessed then turn off
if (pdf.enablePdfSecurityCheckbox.value === 'Yes') {
if (!pdf.restrictOwnerCheckbox.visible) {
await t.click(pdf.enablePublicAccessCheckbox);
}
await t.click(pdf.restrictOwnerCheckbox).click(pdf.saveSettings);
Expand Down

0 comments on commit b62ce47

Please sign in to comment.