Closed Bug 936505 Opened 11 years ago Closed 10 years ago

Neaten up test_settings_wallpaper

Categories

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

ARM
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Bebe, Assigned: RobertC)

Details

(Whiteboard: [gaia-ui-test][mentor=bebe][lang=py])

Attachments

(1 file)

46 bytes, text/x-github-pull-request
Bebe
: review+
bsilverberg
: review+
AndreiH
: review+
Details | Review
Make test_settings_wallpaper use the Activities region
Get the wallpaper settings from the proper Pref rather than just the settings HTML
Whiteboard: [mentor=bebe][lang=py]
Whiteboard: [mentor=bebe][lang=py] → [gaia-ui-test][mentor=bebe][lang=py]
I see the test using the settings HTML displayed on page, but what do you mean by Pref. How can I get it in the test?
I *think* this will be what you want!

It should be the same value as `display_settings.wallpaper_preview_src` but it comes from the proper preferences database so we will be checking that the Gaia app sets the value into the database properly.

self.marionette.execute_script("SpecialPowers.getBoolPref('wallpaper.image');", special_powers=True)
Priority: -- → P3
I will work on this bug
Assignee: nobody → robert.chira
Status: NEW → ASSIGNED
Attached file Pull request
Attachment #8360449 - Flags: review?(florin.strugariu)
Attachment #8360449 - Flags: review?(bob.silverberg)
Attachment #8360449 - Flags: review?(andrei.hutusoru)
I did not understand the "Get the wallpaper settings from the proper Pref rather than just the settings HTML" part 

Running 
self.marionette.execute_script("SpecialPowers.getBoolPref('wallpaper.image');", special_powers=True) returns an error 

Did the "wallpaper.image" pref name change?
I found a setting: "wallpaper.image"

Maybe we can use that
Updated pull request to use the "wallpaper.image" setting which will fail if the images have the same size. 
The previous assertion would not fail if the same image is selected.
Comment on attachment 8360449 [details] [review]
Pull request

See comments in the PR. I addition to some questions, the test is failing for me on b2g desktop.
Attachment #8360449 - Flags: review?(bob.silverberg) → review-
Attachment #8360449 - Flags: review- → review?(bob.silverberg)
Attachment #8360449 - Flags: review?(florin.strugariu) → review+
Comment on attachment 8360449 [details] [review]
Pull request

The test works nice, the code looks ok, but I have 1 comment that I want to be addressed.
Attachment #8360449 - Flags: review?(andrei.hutusoru) → review-
Comment on attachment 8360449 [details] [review]
Pull request

Looking good. Just a couple of comments left to address in the pull request.
Attachment #8360449 - Flags: review?(bob.silverberg) → review-
Attachment #8360449 - Flags: review?(florin.strugariu)
Attachment #8360449 - Flags: review?(bob.silverberg)
Attachment #8360449 - Flags: review?(andrei.hutusoru)
Attachment #8360449 - Flags: review-
Attachment #8360449 - Flags: review+
Attachment #8360449 - Flags: review?(florin.strugariu) → review+
Comment on attachment 8360449 [details] [review]
Pull request

Looks good now. Just resolve the merge conflict and it will be ready to be merged. Leaving my r? to remind me to merge, unless someone else does it first.
Comment on attachment 8360449 [details] [review]
Pull request

looks good!
Attachment #8360449 - Flags: review?(andrei.hutusoru) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 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: