Skip to content

Commit

Permalink
fix: page url redirect action
Browse files Browse the repository at this point in the history
  • Loading branch information
kielllll committed Nov 18, 2024
1 parent 55c2045 commit a04fa66
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/e2e/advanced-checks/pdf-restriction.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ test( 'reset/clean previous tests saved data and ensure PDF can be viewed by def
await advancedCheck.toggleRestrictOwnerCheckbox(
'gf_edit_forms&view=settings&subview=PDF&id=4'
);
await t.useRole( Role.anonymous() ).navigateTo( `${ baseURL }/test-page/` );
const postParam = await getQueryParam( 'post' );
await t
.useRole( Role.anonymous() )
.navigateTo( `${ baseURL }/?page_id=${ postParam }` );
await advancedCheck.submitNewPdfEntry();

await t.useRole( admin );
Expand Down

0 comments on commit a04fa66

Please sign in to comment.