-
Notifications
You must be signed in to change notification settings - Fork 47
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
Initial set of acceptance tests, using WP Acceptance #86
Conversation
… the log out function more reliable.
…not enforced. Fix a typo. Add additional testing for external URL redirects.
Note: looks like there are some issues right now with getting these tests to run in the pipeline. Not exactly sure how to set this up properly but will take a closer look when I can. |
…s in the core framework.
$contains = true; | ||
} | ||
|
||
$this->assertTrue( $contains ); |
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.
can we do this and skip creating $contains
?
$this->assertTrue( $contains ); | |
$this->assertTrue( false !== strpos( $I->getCurrentUrl(), 'wp-login.php' ) ); |
|
||
usleep( 500 ); | ||
|
||
$contains = false; |
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.
same comment as below about $contains, maybe just simplify into assertion?
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.
Fantastic!
@dkotter This is great! I'm still working to get tests passing locally and in Travis, I will update with progress here. |
Description of the Change
Adding in the initial set of acceptance tests, utilizing the WP Acceptance framework. Currently have tests for the following situations:
Benefits
These tests can be run on any PR, ensuring that all functionality works as expected. This makes releases more stable.
Possible Drawbacks
These tests will be run as part of the PR pipeline, resulting in more time spent to finish that pipeline.
Checklist:
Applicable Issues
#55 #83