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

Remove repetitive instance URL visits from tests #7418

Merged

Conversation

connorshea
Copy link
Contributor

Description

I noticed every usage of the loginAsAdmin function in the acceptance test suite was preceded by a visiting the root instance URL, so I moved the instance URL visit into the login function for simplicity.

This removes $I->amOnUrl($webDriverHelper->getInstanceURL()) from all files where it precedes the loginAsAdmin function, since it's now in the loginAsAdmin function.

How To Test This

Make sure the tests pass.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Final checklist

  • My code follows the code style of this project found here.
  • My change requires a change to the documentation.
  • I have read the How to Contribute guidelines.

@connorshea
Copy link
Contributor Author

I'm not sure why these are failing :/

I don't think removing the move to the instance root should effect any tests.

@connorshea
Copy link
Contributor Author

I guess this is failing because of the snapshot reloading? I guess I'll wait until after #7417 is merged to finish this PR.

@connorshea connorshea changed the title Remove repetitive instance URL visits from tests WIP: Remove repetitive instance URL visits from tests Jun 18, 2019
@Dillon-Brown Dillon-Brown added the PR:Community Contribution These are contribution made by the community label Jun 19, 2019
This also removes `$I->amOnUrl($webDriverHelper->getInstanceURL())`
from all files where it precedes the loginAsAdmin function,
since it's now in the loginAsAdmin function.
@salesagility salesagility deleted a comment Jun 19, 2019
@connorshea connorshea changed the title WIP: Remove repetitive instance URL visits from tests Remove repetitive instance URL visits from tests Jun 19, 2019
@connorshea
Copy link
Contributor Author

Passing now :)

@Mac-Rae
Copy link
Contributor

Mac-Rae commented Jun 20, 2019

Assessed by Travis 👍

@Mac-Rae Mac-Rae added the Status:Assessed PRs that have been tested and confirmed to resolve an issue by a core team member label Jun 20, 2019
@Dillon-Brown Dillon-Brown merged commit c83da7d into salesagility:hotfix-7.10.x Jun 20, 2019
@connorshea connorshea deleted the remove-i-am-on-url branch June 20, 2019 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR:Community Contribution These are contribution made by the community Status:Assessed PRs that have been tested and confirmed to resolve an issue by a core team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants