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

Feature/robot random tests #2866

Merged
merged 6 commits into from Sep 13, 2021
Merged

Feature/robot random tests #2866

merged 6 commits into from Sep 13, 2021

Conversation

boakley
Copy link
Contributor

@boakley boakley commented Sep 13, 2021

This improves the pageobject unit tests. They can now be run in random order without failing.

I also move the tests from cumulusci/core/tests to cumulusci/robotframework/tests

Critical Changes

Changes

Issues Closed

Prior to this fix the test would  randomly fail when this suite was run
in random order. With this fix it passes every time. I'm not sure why
the code was changed to check for failure_occurred rather than
capture_page_screenshot, especially since I wanted to explictly check
for capture_page_screenshot.
@boakley boakley requested a review from a team as a code owner September 13, 2021 12:41
prescod
prescod previously approved these changes Sep 13, 2021
Copy link
Contributor

@prescod prescod left a comment

Choose a reason for hiding this comment

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

I will approve but I suggested a minor stylistic change here:

https://github.com/SFDO-Tooling/CumulusCI/compare/feature/robot_random-tests...feature/robot_random-tests__mock_patch?expand=1

If you merge it, I'll approve again. Otherwise, I'll delete that branch.

@prescod prescod merged commit 5204cc6 into main Sep 13, 2021
@prescod prescod deleted the feature/robot_random-tests branch September 13, 2021 20:13
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.

None yet

2 participants