Closed Bug 1113188 Opened 11 years ago Closed 11 years ago

Add a test to check deletion of multiple contacts

Categories

(Firefox OS Graveyard :: Gaia::UI Tests, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jlorenzo, Assigned: jlorenzo)

References

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
RobertC
: review+
martijn.martijn
: review+
Details | Review
QA Whiteboard: [fxosqa-auto-s7][fxosqa-auto-points=2]
Attached file Gaia PR
Attachment #8540144 - Flags: review?(robert.chira)
Attachment #8540144 - Flags: review?(martijn.martijn)
Comment on attachment 8540144 [details] [review] Gaia PR I ran this on latest nightly Mac B2G desktop and I got failures: TEST-UNEXPECTED-ERROR | test_delete_all_contacts.py TestDeleteAllContacts.test_delete_all_contacts | ElementNotVisibleException: ElementNotVisibleException: Element is not currently visible and may not be manipulated in: File "/Users/mwargers/B2G/gaia_clean/tests/python/gaia-ui-tests/gaiatest/tests/functional/contacts/test_delete_all_contacts.py", line 28, in test_delete_all_contacts contacts_app.tap_confirm_delete() When I add 2 time.sleep(1) calls, before and after the tap_confirm_delete() call, I can get the test passing. Also, I think you forgot to put the test file in the manifest.ini file.
Attachment #8540144 - Flags: review?(martijn.martijn) → review-
Comment on attachment 8540144 [details] [review] Gaia PR I fixed the timing issue on b2gdesktop with waits. I came across another problem: self.assertEqual(len(contacts_app.contacts), 0) didn't sometimes work because the DOM modification was not executed fast enough on b2g desktop. After looking into it, I observed that if there is no element matching a given CSS selector, the test would be 30 seconds longer (marionette timeout). I changed the final assertion there and left a comment.
Attachment #8540144 - Flags: review- → review?(martijn.martijn)
Comment on attachment 8540144 [details] [review] Gaia PR Looks wonderful and the test ran without failure on b2g desktop and device 11 times.
Attachment #8540144 - Flags: review?(martijn.martijn) → review+
Comment on attachment 8540144 [details] [review] Gaia PR A couple of comments left in the PR.
Attachment #8540144 - Flags: review?(robert.chira) → review-
Comment on attachment 8540144 [details] [review] Gaia PR I updated the PR with your comments. I didn't want to duplicate the comment in each function, so I created a protected function and tap_export + tap_delete call it. What do you think?
Attachment #8540144 - Flags: review- → review?(robert.chira)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: