Closed
Bug 987133
Opened 12 years ago
Closed 11 years ago
Unxfail and fix test_cards_view_with_two_apps.py
Categories
(Firefox OS Graveyard :: Gaia::UI Tests, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: RobertC, Unassigned)
Details
Attachments
(1 file, 2 obsolete files)
Unxfailign test_cards_view_with_two_apps.py because Bug 946130 was fixed.
Also fixed the test since it was failing from an unrelated issue.
![]() |
Reporter | |
Comment 1•12 years ago
|
||
Attachment #8395685 -
Flags: review?(zcampbell)
Attachment #8395685 -
Flags: review?(viorela.ioia)
Attachment #8395685 -
Flags: review?(florin.strugariu)
![]() |
||
Comment 2•12 years ago
|
||
Comment on attachment 8395685 [details] [review]
Pull request
Well done for spotting that this can be fixed but we need to make this change against master and then uplift it to v1.4 instead.
Attachment #8395685 -
Flags: review?(zcampbell)
Attachment #8395685 -
Flags: review?(viorela.ioia)
Attachment #8395685 -
Flags: review?(florin.strugariu)
Attachment #8395685 -
Flags: review-
![]() |
||
Updated•12 years ago
|
Summary: [v1.4] Unxfail and fix test_cards_view_with_two_apps.py → Unxfail and fix test_cards_view_with_two_apps.py
![]() |
Reporter | |
Comment 3•12 years ago
|
||
Added a new pull request for master branch.
Attachment #8395685 -
Attachment is obsolete: true
Attachment #8396200 -
Flags: review?(zcampbell)
Attachment #8396200 -
Flags: review?(viorela.ioia)
Attachment #8396200 -
Flags: review?(florin.strugariu)
Comment 4•12 years ago
|
||
Comment on attachment 8396200 [details] [review]
Pull request 2
Beside comments in the PR, the test runs nice :)
Attachment #8396200 -
Flags: review?(viorela.ioia) → review-
![]() |
Reporter | |
Updated•12 years ago
|
Attachment #8396200 -
Flags: review- → review?(viorela.ioia)
Updated•12 years ago
|
Attachment #8396200 -
Flags: review?(florin.strugariu) → review+
![]() |
||
Comment 5•12 years ago
|
||
Comment on attachment 8396200 [details] [review]
Pull request 2
r+
Attachment #8396200 -
Flags: review?(zcampbell)
Attachment #8396200 -
Flags: review?(viorela.ioia)
Attachment #8396200 -
Flags: review+
![]() |
||
Comment 6•12 years ago
|
||
![]() |
||
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 7•12 years ago
|
||
Landing this caused it to fail in 1.4 test_cards_view_with_two_apps.py test_cards_view_with_two_apps.TestCardsView.test_that_app_can_be_launched_from_cards_view =/
Error stack: TEST-START test_cards_view_with_two_apps.py
test_that_app_can_be_launched_from_cards_view (test_cards_view_with_two_apps.TestCardsView)
https://moztrap.mozilla.org/manage/case/2462/ ... ERROR
======================================================================
ERROR: None
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/mozilla-b2g/gaia/travis_venv/local/lib/python2.7/site-packages/marionette_client-0.7.5-py2.7.egg/marionette/marionette_test.py", line 163, in run
testMethod()
File "/home/travis/build/mozilla-b2g/gaia/tests/python/gaia-ui-tests/gaiatest/tests/functional/cards_view/test_cards_view_with_two_apps.py", line 38, in test_that_app_can_be_launched_from_cards_view
cards_view.tap_app(self._test_apps[0])
File "/home/travis/build/mozilla-b2g/gaia/tests/python/gaia-ui-tests/gaiatest/apps/system/regions/cards_view.py", line 41, in tap_app
self.wait_for_condition(lambda m: card_view.value_of_css_property('pointer-events') == 'auto')
File "/home/travis/build/mozilla-b2g/gaia/tests/python/gaia-ui-tests/gaiatest/apps/base.py", line 54, in wait_for_condition
Wait(self.marionette, timeout).until(method, message=message)
File "/home/travis/build/mozilla-b2g/gaia/travis_venv/local/lib/python2.7/site-packages/marionette_client-0.7.5-py2.7.egg/marionette/wait.py", line 143, in until
cause=last_exc)
TimeoutException: TimeoutException: Timed out after 10.0385260582 seconds
TEST-UNEXPECTED-FAIL | test_cards_view_with_two_apps.py test_cards_view_with_two_apps.TestCardsView.test_that_app_can_be_launched_from_cards_view |
----------------------------------------------------------------------
Ran 1 test in 20.640s
Reverted master: https://github.com/mozilla-b2g/gaia/commit/9da1b9c11bf518bce882be305ae121c44c5d1e05
Reverted v1.4: https://github.com/mozilla-b2g/gaia/commit/8838052fc451a2a9579fa22a353fbaeb42dd13bb
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
![]() |
Reporter | |
Comment 8•12 years ago
|
||
I checked the changes against v1.4 branch and could not reproduce the failure. Also started an adhoc run
http://selenium.qa.mtv2.mozilla.com:8080/view/B2G%20Hamachi/job/b2g.hamachi.mozilla-aurora.ui.adhoc/21/HTML_Report/?
Did this issue reproduce 100% or intermittently? On the device did the card change to calendar after the flick() action?
Flags: needinfo?(kgrandon)
Comment 9•12 years ago
|
||
This was an intermittent test that happened on travis as soon as the patch landed. I'm not sure what state it got to - I only have the above dump.
You may want to test a few runs on travis to see what if anything is different.
Flags: needinfo?(kgrandon)
![]() |
||
Comment 10•12 years ago
|
||
Robert you need to test this for intermittents on Travis/desktopb2g. It behaves differently to the device.
![]() |
Reporter | |
Comment 11•12 years ago
|
||
The failure from Travis is caused by the flick action not working. It seems that the the test moves too fast from opening the cards view to the flick action. I added a PR with a time.sleep before flick().
Instead of the sleep I tried waiting for the cards view by using different locators, but nothing seems to work, it was still failing with the same error.
Attachment #8396200 -
Attachment is obsolete: true
Attachment #8397738 -
Flags: feedback?(zcampbell)
Attachment #8397738 -
Flags: feedback?(viorela.ioia)
Attachment #8397738 -
Flags: feedback?(dave.hunt)
Attachment #8397738 -
Flags: feedback?(bob.silverberg)
Comment 12•12 years ago
|
||
Comment on attachment 8397738 [details] [review]
Pull request 2
A few comments:
* We should strive to avoid sleeps. We could ask the gaia devs if there's something specific we could wait for, or perhaps they can add something for us to improve testability. Also, try comparing the page source before and after the event to see if there's anything that jumps out.
* If we have to resort to a sleep (it really is a last resort) then we shouldn't also include a wait that doesn't achieve anything.
* Why are we returning element.tap() in tap_app? This wasn't introduced by your patch, but you modify that line and we should clean that up.
* It's not obvious to me why you're changing it from switching to the next app to the previous app.
Attachment #8397738 -
Flags: feedback?(dave.hunt) → feedback-
![]() |
||
Comment 13•12 years ago
|
||
+1, the location of the sleep you are using suggests that the wait prior to that is insufficient so try and refine that one.
I think the team must have reversed the index order of the cards in the view. This test has been disabled for a long time because of the Marionette issue so we would not have noticed it.
![]() |
||
Updated•12 years ago
|
Attachment #8397738 -
Flags: feedback?(zcampbell)
Attachment #8397738 -
Flags: feedback?(viorela.ioia)
Attachment #8397738 -
Flags: feedback?(bob.silverberg)
Attachment #8397738 -
Flags: feedback-
![]() |
Reporter | |
Updated•12 years ago
|
Assignee: robert.chira → nobody
![]() |
||
Comment 14•11 years ago
|
||
This has been invalidated by being blocked by bug 946130.
Status: REOPENED → RESOLVED
Closed: 12 years ago → 11 years ago
Resolution: --- → INVALID
![]() |
||
Comment 15•11 years ago
|
||
I know this was reverted because it was failing on travis, but it is still flicking in the wrong direction
![]() |
||
Comment 16•11 years ago
|
||
(In reply to [:AndreiH] from comment #15)
> I know this was reverted because it was failing on travis, but it is still
> flicking in the wrong direction
Can you file a separate bug to resolve it?
Flags: needinfo?(andrei.hutusoru)
![]() |
||
Comment 17•11 years ago
|
||
sure, i'll open another bug and take a look
Flags: needinfo?(andrei.hutusoru)
You need to log in
before you can comment on or make changes to this bug.
Description
•