Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

For #7563 - Sync integration logins #7564

Merged
merged 7 commits into from
Jan 14, 2020

Conversation

isabelrios
Copy link
Contributor

Fixes #7563

Pull Request checklist

  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features

After merge

  • Milestone: Make sure issues finished by this pull request are added to the milestone of the version currently in development.

To download an APK when reviewing a PR:

  1. click on Show All Checks,
  2. click Details next to "Taskcluster (pull_request)" after it appears and then finishes with a green checkmark,
  3. click on the "Fenix - assemble" task, then click "Run Artifacts".
  4. the APK links should be on the left side of the screen, named for each CPU architecture

@codecov-io
Copy link

codecov-io commented Jan 9, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@9c28cb6). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #7564   +/-   ##
=========================================
  Coverage          ?   19.35%           
  Complexity        ?      456           
=========================================
  Files             ?      300           
  Lines             ?    11435           
  Branches          ?     1538           
=========================================
  Hits              ?     2213           
  Misses            ?     9053           
  Partials          ?      169

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9c28cb6...0286a8d. Read the comment docs.

@isabelrios isabelrios marked this pull request as ready for review January 13, 2020 11:52
mDevice.waitNotNull(Until.findObjects(By.text("On")), TestAssetHelper.waitingTime)
}
}

/* These tests will be running in the future
Copy link
Contributor

Choose a reason for hiding this comment

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

for this are we waiting on a feature to land?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not really, I just need to work on those one which are in the direction Fenix -> Desktop

Copy link
Contributor

@rpappalax rpappalax left a comment

Choose a reason for hiding this comment

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

once @KMaragh approves and firebase passing, 👍 Let's also make sure we have manual steps recoreded in TestRail

}.openThreeDotMenu {
}.openSettings {
// Necessary to scroll a little bit for all screen sizes
TestHelper.scrollToElementByText("Logins and passwords")
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe move this scroll portion into the openLoginsAndPasswordSubMenu method, since any time you need to open that subMenu, you will most likely have to scroll.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense, I added it to Settings Robot though since it is there where we need to scroll so that the Logins And Passwords menu is accessible

settingsSubMenuLoginsAndPassword {
mDevice.waitNotNull(Until.findObjects(By.text("Sync logins")), TestAssetHelper.waitingTime)
verifyDefaultView()
mDevice.waitNotNull(Until.findObjects(By.text("Off")), TestAssetHelper.waitingTime)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can both of these object checks for 'sync logins' and 'Off' be moved into the verifyDefaultView method?

I'm not sure what the method does but it might fit better in there, or in their own methods to maintain readability of this test file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, moved there. The verifyDefaultView checks the UI, that the options are correct and so

// Discard the secure your device message
tapSetupLater()
// Check the logins synced
mDevice.waitNotNull(Until.findObjects(By.text("https://accounts.google.com")), TestAssetHelper.waitingTime)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above. This feels like it can be placed within the 'verifySavedLoginsAfterSync' method

@rpappalax rpappalax merged commit d25cbeb into mozilla-mobile:master Jan 14, 2020
@liuche liuche mentioned this pull request Jan 22, 2020
32 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UI Testst] Add test for Logins and Password menu (sign in with FxA)
4 participants