-
Notifications
You must be signed in to change notification settings - Fork 4
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
PRESS4-393 | Cypress Test Workflow fix #160
Conversation
2ae248d
to
18c0333
Compare
…mmerce into fix-tests-workflow
…wp-module-ecommerce into fix-tests-workflow
…mmerce into fix-tests-workflow
- name: Setup workflow context | ||
id: workflow | ||
working-directory: ${{ runner.temp }} | ||
env: | ||
REPO: ${{ github.repository }} | ||
REPO: "bluehost-wordpress-plugin" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sangeetha-nayak What happens in case of other brands, shouldn't this be generic?
}) | ||
|
||
beforeEach(()=> { | ||
cy.visit('/wp-admin/admin.php?page=bluehost#/home') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will url
will change for other brands
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done changes to support other brands
uses: actions/checkout@v4 | ||
with: | ||
repository: bluehost/bluehost-wordpress-plugin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other brands?
.wp-env.json
Outdated
"WP_TESTS_DOMAIN": "localhost:8881", | ||
"WP_TESTS_EMAIL": "[email protected]", | ||
"WP_TESTS_TITLE": "WordPress Tests", | ||
"WP_TESTS_TITLE": "Bluehost WordPress Plugin", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generic title?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Fix Cypress Tests - tests.yml - workflow to enable cypress tests from running for every PR.
Check will be triggered for each PR created against wp-module-ecommerce and cypress tests will run against plugin with dev changes on it.
A copy of Bluehost plugin with dev changes will be uploaded as workflow artifact
A small change to fix failing bluehost-plugin.yml is also included in the PR.