Skip to content

Commit

Permalink
chore: remove cypress outdated code
Browse files Browse the repository at this point in the history
  • Loading branch information
ravinderk committed Oct 11, 2023
1 parent 16f09b3 commit 8681c4c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
8 changes: 3 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/cypress/e2e/admin.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
describe('Admin can login and make sure plugin is activated', () => {
before(() => {
beforeEach(() => {
cy.login();
});

Expand Down
6 changes: 3 additions & 3 deletions tests/cypress/e2e/safe-svg.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
describe('Safe SVG Tests', () => {
before(() => {
beforeEach(() => {
cy.login();
});

Expand All @@ -14,10 +14,10 @@ describe('Safe SVG Tests', () => {
*
* fixtures folder contains custom.svg file
* It contains custom tag (customTestTag) with custom attribute (customTestAttribute).
*
*
* This test upload custom.svg to WP, get svg file content by URL and verify
* that it's not containing customTestTag and customTestAttribute.
*/
*/
it('SVG should be sanitized', () => {
// Deactivate Test Plugin if it is active.
cy.deactivatePlugin('safe-svg-cypress-test-plugin');
Expand Down
8 changes: 0 additions & 8 deletions tests/cypress/support/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,3 @@ import "@10up/cypress-wp-utils";

// Import commands.js using ES2015 syntax:
import "./commands";

// Alternatively you can use CommonJS syntax:
// require('./commands')
beforeEach(() => {
Cypress.Cookies.defaults({
preserve: /^wordpress.*?/,
});
});

0 comments on commit 8681c4c

Please sign in to comment.