-
Notifications
You must be signed in to change notification settings - Fork 19
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 cypress tests #145
Add cypress tests #145
Conversation
Add admin page tests Add block editor tests
@thrijith what else is needed here to bring out of draft? (also, THANKS for helping on this!) |
Hi @jeffpaul, the last test ran successfully here https://github.com/10up/autoshare-for-twitter/runs/5512545638?check_suite_focus=true#step:8:155 but I am seeing issue with same test when run against different WP version, don't think it is due version but something else, I'll check and see how it goes and update the PR when ready, hope that works 🙂 |
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.
reviewed by accident
Hi @jeffpaul I have the test ready, but there are issues when it is running on GH actions, and the videos generated as part of the process doesn't help in pinpointing the issue here, would be really helpful if someone can take a look at this as well.
|
Hi @thrijith, Test failure in Thanks |
@iamdharmesh awesome, thanks! also what was the issue though? I see you moved permalink setup to be done after env setup was that is? I'll check the requirements in https://github.com/10up/autoshare-for-twitter/issues/91and see if anything new needs to be done here or not in sometime. |
@thrijith The issue is related to some file permissions when we specify custom WordPress version for wp-env in .wp-env.json or .wp-env-override.json. In this case .htaccess file couldn’t be created in the root folder of the testing website. This is a known issue and fixed by @cadic. So, I applied his solution here |
1be7125
to
54ce129
Compare
Update permission of test core version setting Update description for edit page Remove test for actual tweet test Remove secrets passed in test action
Update tests and add block editor and classic editor cypress tests Remove wpacceptance Pass env vars via command line option
Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.10.2 to 6.12.6. - [Release notes](https://github.com/ajv-validator/ajv/releases) - [Commits](ajv-validator/ajv@v6.10.2...v6.12.6) --- updated-dependencies: - dependency-name: ajv dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [tar](https://github.com/npm/node-tar) from 4.4.8 to 4.4.19. - [Release notes](https://github.com/npm/node-tar/releases) - [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md) - [Commits](isaacs/node-tar@v4.4.8...v4.4.19) --- updated-dependencies: - dependency-name: tar dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
Update upload artifact action for debugging Update upload artifact action for debugging
Check if dialog is working in CI Revert "Check if dialog is working in CI" This reverts commit 85adb37.
Add composer to test run fix syntax Set permalink for unique URL Add helper function to get random text Set video to true for testing Revert "Set video to true for testing" This reverts commit 1446c60.
…config to enable video Rename test files for order Add more time to check for tweet Try fixing issue with tests in different WP versions Add timeout before click and additional step for lower version metabox Reduce timeouts in tests Temporarily remove trunk from matrix tests Revert "Temporarily remove trunk from matrix tests" This reverts commit 1a5576b.
@thrijith considering your comment here #91 (comment), making this PR Ready for review. |
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.
@thrijith overall, the PR looks good to me, great work 🎉 !
I notice you use cy.wait
quite often, can you try to reduce or eliminate the usage of timeout functions? Because using timeout is a signal of potential flaky tests.
… into feature/add-cypress-tests
Hi @dinhtungdu, I have updated PR for utilizing our utils lib @10up/cypress-wp-utils and improved tests by removing wait and timeout-related stuff. Please help to re-review it. Thanks |
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.
LGTM! Left an optional comment but pre-approving this! Thanks so much for the great work on this PR!
Description of the Change
Closes #91
Alternate Designs
N/A
Possible Drawbacks
N/A
Verification Process
Checklist:
Changelog Entry
Credits
Props @