Closed Bug 956031 Opened 11 years ago Closed 10 years ago

Ensure geolocation UI automated test checks for presence of geolocation icon in status bar

Categories

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

ARM
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jsmith, Assigned: AndreiH)

References

Details

Attachments

(1 file)

Context - bug 955906

Apparently our UI automation didn't catch a regression where the geolocation icon was failing to appear after requesting a location in geolocation. We should enhance the geolocation UI automated test to verify the geolocation icon is present in the status bar.
Blocks: 955906
Summary: Ensure geolocation UI automated test checks for presence of geolocation icon in status bar → Ensure geolocation UI automated test to check for presence of geolocation icon in status bar
Summary: Ensure geolocation UI automated test to check for presence of geolocation icon in status bar → Ensure geolocation UI automated test checks for presence of geolocation icon in status bar
We can do this.
Priority: -- → P2
Comment on attachment 8355516 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/15008

r-,
the bug requests a check of the icon on the permission prompt.

This is the 'target' shaped icon next to the text "Geoloc would like to know your location" on the prompt.
Attachment #8355516 - Flags: review?(zcampbell) → review-
That is what I also thought at first, but when I read https://bugzilla.mozilla.org/show_bug.cgi?id=955906#c8, they are referring at the 'target' geolocation icon from the status bar
Attachment #8355516 - Flags: feedback?(zcampbell)
(In reply to AndreiH from comment #4)
> That is what I also thought at first, but when I read
> https://bugzilla.mozilla.org/show_bug.cgi?id=955906#c8, they are referring
> at the 'target' geolocation icon from the status bar

Yup, that's right. This is referring to the geolocation icon that appears in the status bar after you allow permissions for geolocation.
No longer blocks: 955906
Blocks: 951785
Comment on attachment 8355516 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/15008

I feel like a simple page object region would be helpful here 
Zac what do you think?
Attachment #8355516 - Flags: review-
Flags: needinfo?(zcampbell)
(In reply to Jason Smith [:jsmith] from comment #5)
> (In reply to AndreiH from comment #4)
> > That is what I also thought at first, but when I read
> > https://bugzilla.mozilla.org/show_bug.cgi?id=955906#c8, they are referring
> > at the 'target' geolocation icon from the status bar
> 
> Yup, that's right. This is referring to the geolocation icon that appears in
> the status bar after you allow permissions for geolocation.

My apologies Andrei :)
This makes much more sense!
(In reply to Florin Strugariu [:Bebe] from comment #6)
> Comment on attachment 8355516 [details] [review]
> Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/15008
> 
> I feel like a simple page object region would be helpful here 
> Zac what do you think?

Not a page region, a class is too heavy for just one feature.

You can make it a property in the System app as that's where the HTML belongs.
Flags: needinfo?(zcampbell)
Comment on attachment 8355516 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/15008

Updated the pull
Attachment #8355516 - Flags: review?(zcampbell)
Attachment #8355516 - Flags: review?(florin.strugariu)
Attachment #8355516 - Flags: review-
Attachment #8355516 - Flags: feedback?(zcampbell)
Blocks: 955906
Comment on attachment 8355516 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/15008

r- variable name is wrong.
Attachment #8355516 - Flags: review?(zcampbell) → review-
Comment on attachment 8355516 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/15008

Updated
Attachment #8355516 - Flags: review- → review?(zcampbell)
Comment on attachment 8355516 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/15008

Looks good my friend!
r+!
Attachment #8355516 - Flags: review?(zcampbell)
Attachment #8355516 - Flags: review?(florin.strugariu)
Attachment #8355516 - Flags: review+
Merged:
https://github.com/mozilla-b2g/gaia/commit/8ca18c3dcf83bbdbcad203962e39e049baf9a6b8
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Jason this has now had the effect of meaning we cannot run this test on CI environments Travis and TBPL because they don't have the Geolocation hardware.

Previously this did run on CI but only tested the presence of the prompt (which was the original regression target).

With this change we can only run it on device now. Is that OK?
Flags: needinfo?(jsmith)
That sounds fine.
Flags: needinfo?(jsmith)
Assignee: nobody → andrei.hutusoru
No longer blocks: 951785
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: