Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add E2E Tests #37

Draft
wants to merge 42 commits into
base: develop
Choose a base branch
from
Draft

Add E2E Tests #37

wants to merge 42 commits into from

Conversation

sksaju
Copy link
Member

@sksaju sksaju commented Sep 17, 2024

Description of the Change

Add E2E tests to the plugin.

Closes #19

How to test the Change

Run E2E tests by running:

  • npm install
  • npm run cypress:run

Changelog Entry

  • Added - E2E tests

Credits

Props @username, @username2, ...

Checklist:

@sksaju sksaju marked this pull request as draft September 17, 2024 21:03
@jeffpaul jeffpaul added this to the 0.4.0 milestone Sep 17, 2024
@jeffpaul jeffpaul requested a review from a team September 17, 2024 23:48
.github/workflows/cypress.yml Outdated Show resolved Hide resolved
.github/workflows/cypress.yml Outdated Show resolved Hide resolved
.github/workflows/cypress.yml Outdated Show resolved Hide resolved
.github/workflows/cypress.yml Outdated Show resolved Hide resolved
.github/workflows/cypress.yml Outdated Show resolved Hide resolved
.github/workflows/cypress.yml Outdated Show resolved Hide resolved
@@ -34,3 +34,9 @@ Thumbs.db
Desktop.ini
/debug.log
/db.php

# Tests
tests/cypress/downloads
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can probably just ignore the entire tests directory

package.json Outdated Show resolved Hide resolved
@@ -0,0 +1,38 @@
#!/usr/bin/env node
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've not compared line by line but I know this is slightly different than the most recent version of this we've done. Can see that here: https://github.com/10up/insecure-content-warning/blob/develop/tests/bin/set-wp-config.js

tests/cypress/e2e/admin.cy.js Outdated Show resolved Hide resolved
@jeffpaul jeffpaul requested a review from dkotter September 25, 2024 15:28
@jeffpaul jeffpaul removed their request for review October 16, 2024 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add E2E tests
3 participants