Skip to content

Commit

Permalink
Add a test to verify the large SVG setting can be set
Browse files Browse the repository at this point in the history
  • Loading branch information
dkotter committed Nov 20, 2024
1 parent 132b598 commit 2a7f47c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/cypress/e2e/admin.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@ describe('Admin can login and make sure plugin is activated', () => {
cy.get('[name="safe_svg_upload_roles[]"]').first().check();
cy.get('#submit').click()
});

it('Can toggle the large SVG setting', () => {
cy.visit('/wp-admin/options-media.php');
cy.get('[name="safe_svg_large_svg"]').check();
cy.get('#submit').click()
});
});

0 comments on commit 2a7f47c

Please sign in to comment.