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

Initial set of acceptance tests, using WP Acceptance #86

Merged
merged 12 commits into from
Jul 18, 2019

Conversation

dkotter
Copy link
Collaborator

@dkotter dkotter commented May 24, 2019

Description of the Change

Adding in the initial set of acceptance tests, utilizing the WP Acceptance framework. Currently have tests for the following situations:

  • RSA is activated on a single site (and testing all settings)
  • RSA is network activated and is set to enforce settings on each site (and testing all settings)
  • RSA is network activated but is set to not enforce settings. Test that settings on an individual site in the network override the network settings

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:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests passed.

Applicable Issues

#55 #83

@dkotter
Copy link
Collaborator Author

dkotter commented May 24, 2019

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.

@jeffpaul jeffpaul requested a review from adamsilverstein July 10, 2019 21:58
@jeffpaul jeffpaul added the type:enhancement New feature or request. label Jul 10, 2019
@jeffpaul jeffpaul added this to the 7.2.0 milestone Jul 10, 2019
$contains = true;
}

$this->assertTrue( $contains );

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?

Suggested change
$this->assertTrue( $contains );
$this->assertTrue( false !== strpos( $I->getCurrentUrl(), 'wp-login.php' ) );


usleep( 500 );

$contains = false;

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?

Copy link

@adamsilverstein adamsilverstein left a comment

Choose a reason for hiding this comment

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

Fantastic!

@adamsilverstein
Copy link

@dkotter This is great! I'm still working to get tests passing locally and in Travis, I will update with progress here.

@adamsilverstein
Copy link

adamsilverstein commented Jul 18, 2019

After clearing docker I was able to get all test passing locally. I ran them with --show_browser so I could watch what they do... fun!

image

@dkotter dkotter merged commit 9bba567 into develop Jul 18, 2019
@dkotter dkotter deleted the feature/wp-acceptance branch July 18, 2019 22:00
@jeffpaul jeffpaul mentioned this pull request Aug 13, 2019
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants