Closed
Bug 939062
Opened 12 years ago
Closed 12 years ago
[UI Tests] Intermittent Travis UI Test Failure: TEST-UNEXPECTED-FAIL | test_add_contact_to_favorites.py test_add_contact_to_favorites.TestAddContactToFavorite.test_add_contact_to_favorite | AssertionError: u'Add as Favorite' != 'Remove as Favorite'
Categories
(Firefox OS Graveyard :: Gaia::UI Tests, defect, P1)
Tracking
(b2g-v1.2 affected)
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| b2g-v1.2 | --- | affected |
People
(Reporter: julienw, Assigned: zcampbell)
Details
Attachments
(4 files, 2 obsolete files)
|
46 bytes,
text/x-github-pull-request
|
bsilverberg
:
review+
|
Details | Review |
|
46 bytes,
text/x-github-pull-request
|
bsilverberg
:
review+
Bebe
:
review+
AndreiH
:
review+
|
Details | Review |
|
358 bytes,
text/html
|
bsilverberg
:
review-
|
Details |
|
358 bytes,
text/html
|
AlinT
:
review+
AndreiH
:
review+
viorela
:
review+
|
Details |
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/marionette_client-0.6.2-py2.7.egg/marionette/marionette_test.py", line 143, in run
testMethod()
File "/home/travis/build/mozilla-b2g/gaia/tests/python/gaia-ui-tests/gaiatest/tests/functional/contacts/test_add_contact_to_favorites.py", line 25, in test_add_contact_to_favorite
self.assertEqual(contact_details.add_remove_text, 'Remove as Favorite')
TEST-UNEXPECTED-FAIL | test_add_contact_to_favorites.py test_add_contact_to_favorites.TestAddContactToFavorite.test_add_contact_to_favorite | AssertionError: u'Add as Favorite' != 'Remove as Favorite'
| Assignee | ||
Comment 1•12 years ago
|
||
OK the wait here on line #66 is terrible, it's doing almost nothing:
https://github.com/mozilla-b2g/gaia/blob/master/tests/python/gaia-ui-tests/gaiatest/apps/contacts/regions/contact_details.py#L66
After the tap we should wait for something in/on the page to change state properly.
OS: Linux → Gonk (Firefox OS)
Priority: -- → P1
Hardware: x86_64 → Other
Updated•12 years ago
|
Assignee: nobody → bob.silverberg
Status: NEW → ASSIGNED
Comment 2•12 years ago
|
||
Pointer to Github pull-request
Updated•12 years ago
|
Attachment #832913 -
Flags: review?(zcampbell)
Attachment #832913 -
Flags: review?(trifandreialin)
Attachment #832913 -
Flags: review?(moz.teodosia)
Attachment #832913 -
Flags: review?(florin.strugariu)
Attachment #832913 -
Flags: review?(andrei.hutusoru)
Comment 3•12 years ago
|
||
Pointer to Github pull-request
Comment 4•12 years ago
|
||
Comment on attachment 832917 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/13747
Same change for v1.2
Attachment #832917 -
Flags: review?(zcampbell)
Attachment #832917 -
Flags: review?(trifandreialin)
Attachment #832917 -
Flags: review?(moz.teodosia)
Attachment #832917 -
Flags: review?(florin.strugariu)
Attachment #832917 -
Flags: review?(andrei.hutusoru)
Updated•12 years ago
|
Attachment #832913 -
Flags: review?(florin.strugariu) → review+
Updated•12 years ago
|
Attachment #832913 -
Flags: review?(andrei.hutusoru) → review-
Updated•12 years ago
|
Attachment #832917 -
Flags: review?(florin.strugariu) → review+
Updated•12 years ago
|
Attachment #832917 -
Flags: review?(moz.teodosia) → review+
| Assignee | ||
Comment 5•12 years ago
|
||
Comment on attachment 832913 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/13746
I haven't been able to run it but the logic looks sound.
Attachment #832913 -
Flags: review?(zcampbell) → review+
Comment 6•12 years ago
|
||
Can someone else please test that on desktopb2g? Because this fails for me intermittently
| Assignee | ||
Comment 7•12 years ago
|
||
I can test on desktopb2g.
| Assignee | ||
Comment 8•12 years ago
|
||
What is the error you're getting Andrei?
| Assignee | ||
Updated•12 years ago
|
Attachment #832913 -
Flags: review?(trifandreialin)
Attachment #832913 -
Flags: review?(moz.teodosia)
| Assignee | ||
Comment 9•12 years ago
|
||
| Assignee | ||
Comment 10•12 years ago
|
||
Comment on attachment 832917 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/13747
r+
Attachment #832917 -
Flags: review?(zcampbell)
Attachment #832917 -
Flags: review?(trifandreialin)
Attachment #832917 -
Flags: review?(andrei.hutusoru)
Attachment #832917 -
Flags: review+
| Assignee | ||
Comment 11•12 years ago
|
||
| Assignee | ||
Comment 12•12 years ago
|
||
Reverted masteR:
https://github.com/mozilla-b2g/gaia/commit/52978d943425c086482a946e63842e83d5d2b2de
Reverted v1.2:
https://github.com/mozilla-b2g/gaia/commit/3d68f43721911869be14b0876e9d58e817f90e20
This has made stability worse.
It is waiting for visible text which may be off-screen, hence the wait is failing.
| Assignee | ||
Comment 13•12 years ago
|
||
Having a quick look at this now.
Assignee: bob.silverberg → zcampbell
| Assignee | ||
Comment 14•12 years ago
|
||
Just doing a trial run on Travis to fix this test.
If it works I'll revert the changes to `script` file.
Attachment #832913 -
Attachment is obsolete: true
Attachment #832917 -
Attachment is obsolete: true
Attachment #8337832 -
Flags: review?(fyen)
Attachment #8337832 -
Flags: review?(bob.silverberg)
Comment 15•12 years ago
|
||
Comment on attachment 8337832 [details] [review]
github pr
LGTM, just need to undo the script change.
Attachment #8337832 -
Flags: review?(bob.silverberg) → review+
Updated•12 years ago
|
Attachment #8337832 -
Flags: review?(fyen)
Comment 16•12 years ago
|
||
Landed on master in https://github.com/mozilla-b2g/gaia/commit/671a7c1fae1c32a77b2675636c7efdf089fd6443
We should bring this into v1.2 as well.
status-b2g-v1.2:
--- → affected
| Assignee | ||
Comment 17•12 years ago
|
||
Still not happy with this so I'm fixing a second failure which is when the "add to favorite" button is slightly off screen and not tapped by Marionette properly.
Attachment #8338406 -
Flags: review?(florin.strugariu)
Attachment #8338406 -
Flags: review?(bob.silverberg)
Comment 18•12 years ago
|
||
Comment on attachment 8338406 [details] [review]
github pr
works like a charm
Attachment #8338406 -
Flags: review?(florin.strugariu) → review+
Comment 19•12 years ago
|
||
Pointer to Github pull-request
Comment 20•12 years ago
|
||
Comment on attachment 8339142 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/14110
UPLIFTED TO V1.2
Attachment #8339142 -
Flags: review?(trifandreialin)
Attachment #8339142 -
Flags: review?(florin.strugariu)
Attachment #8339142 -
Flags: review?(bob.silverberg)
Comment 21•12 years ago
|
||
Comment on attachment 8338406 [details] [review]
github pr
Works nicely!
Attachment #8338406 -
Flags: review+
Comment 22•12 years ago
|
||
Comment on attachment 8339142 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/14110
This PR is causing 3 tests to fail, which can be seen on Travis. I am surprised that this PR was submitted at all, considering that the test it was meant to fix is now broken. Were the tests run against v1.2?
Attachment #8339142 -
Flags: review?(bob.silverberg) → review-
Comment 23•12 years ago
|
||
Comment on attachment 8338406 [details] [review]
github pr
Landed on master in https://github.com/mozilla-b2g/gaia/commit/6f6cd8caac5d44762cbff38c97517dc1d48278ba
Attachment #8338406 -
Flags: review?(bob.silverberg) → review+
Comment 24•12 years ago
|
||
Pointer to Github pull-request
Comment 25•12 years ago
|
||
Comment on attachment 8339259 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/14127
Uplift to v1.2
Attachment #8339259 -
Flags: review?(viorela.ioia)
Attachment #8339259 -
Flags: review?(trifandreialin)
Attachment #8339259 -
Flags: review?(florin.strugariu)
Attachment #8339259 -
Flags: review?(andrei.hutusoru)
Updated•12 years ago
|
Attachment #8339259 -
Flags: review?(viorela.ioia) → review+
Comment 26•12 years ago
|
||
Comment on attachment 8339259 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/14127
lgtm, my bad, I did not run it on device. brought in both commits
Attachment #8339259 -
Flags: review?(andrei.hutusoru) → review+
Comment 27•12 years ago
|
||
can't we do the 2 pulls in one ?
They fix the same test right?
Flags: needinfo?(bob.silverberg)
Flags: needinfo?(andrei.hutusoru)
Comment 28•12 years ago
|
||
Bebe, that is irrelevant now, as the 2nd part of the fix has already landed in both master and v1.2. Now we just need a working version of the first part of the fix for v1.2.
In the future, yes, it would make sense to do a single PR with both commits for the uplift.
Flags: needinfo?(bob.silverberg)
Updated•12 years ago
|
Attachment #8339259 -
Flags: review?(trifandreialin) → review+
Comment 29•12 years ago
|
||
merged in v1.2 with commit:
https://github.com/mozilla-b2g/gaia/commit/1b67b551be11daf33dad8387a7153cc52e5cefa2
Updated•12 years ago
|
Attachment #8339259 -
Flags: review?(florin.strugariu)
Comment 31•12 years ago
|
||
Marking this bug as RF, since it landed in master and v1.2.
Thanks guys!
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 32•12 years ago
|
||
Comment on attachment 8339142 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/14110
pull 14110 was closed after the merge of pull 14127, the review are no longer needed
Attachment #8339142 -
Flags: review?(trifandreialin)
Attachment #8339142 -
Flags: review?(florin.strugariu)
You need to log in
before you can comment on or make changes to this bug.
Description
•