Closed Bug 1216562 Opened 9 years ago Closed 9 years ago

Update move_app and delete{_packaged}_app in order to support the new homescreen

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jlorenzo, Assigned: jlorenzo)

References

Details

Attachments

(2 files)

      No description provided.
Attached patch all.diffSplinter Review
I was first trying to get this test fixed, but figured out soon that it was more difficult than I thought. Here is a diff of what I did then, perhaps there is some usefulness in here.
Martijn solve some parts of the problem that I'll use (bug 1216564).
Blocks: 1216564
I have a first patch. The delete test takes longer to be executed due to a timeout. I'll fix it. There is also delete_app_packaged that could be merged with delete_app, I think.
Blocks: 1217404
Comment on attachment 8677402 [details] [review]
[gaia] JohanLorenzo:bug-1216562 > mozilla-b2g:master

I couldn't find a better way to wait for the app to be not displayed anymore. I tried to use Base.is_element_displayed() but I got Python error:
> UnboundLocalError: local variable 'wrapped' referenced before assignment

After looking it up, there is somewhere in the code where I tried to change the content of an external variable. 

If you guys have any other idea.
Attachment #8677402 - Flags: review?(npark)
Attachment #8677402 - Flags: review?(martijn.martijn)
Comment on attachment 8677402 [details] [review]
[gaia] JohanLorenzo:bug-1216562 > mozilla-b2g:master

nice how test_homescreen_delete_app.py and test_homescreen_delete_app_packaged.py can be combined.
I wonder how app_elements works, I thought you would need to do switch_to_shadow_root() to some element at some point.
Attachment #8677402 - Flags: review?(martijn.martijn) → review+
Comment on attachment 8677402 [details] [review]
[gaia] JohanLorenzo:bug-1216562 > mozilla-b2g:master

looks good to me.
Attachment #8677402 - Flags: review?(npark) → review+
I rebased on top of No-Jun's patch. I checked for any other dead reference in the Homescreen page class. Only bookmark is remaining, it'll be handled in bug 1217404.

I ran the manifest file in the homescreen. Every test was passing. I checked the content of manifest, only test_homescreen_status_bar_icons_visibility.py is still not run. Not sure if we should remove or update it. Let's see that in bug 1217870.

Landed in master at: https://github.com/mozilla-b2g/gaia/commit/3e7e5f9af1646dfdf9e45f00e5860e533c024b47
No longer blocks: 1216564
Status: NEW → RESOLVED
Closed: 9 years ago
Depends on: 1216564
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: