== Spec
Home View, Scenario: "Nearby"
Home View, Scenario: Shared Behavior: Nearby Item Container View
Users can enable or disable access to their location at any time, and we should be able to handle it gracefully by:
- Removing "nearby" sections from the feed when access is denied
- If we were in the "More nearby your location" list, showing a specific "empty" state
- Adding a nearby section when access is granted
- Populating the "More nearby your location" list if visible when access is granted
---
== Steps to repro
# Clean install
# Deny app access to location (after going through on-boarding)
=== Expected results
No nearby section
=== Actual results
{F3057296}
---
== Spec ==
=== Home View ===
==== Scenario: Nearby ====
Given I am on the Home View
And I have denied the app access to my location
Then I should not see the Nearby section
==== Scenario: User enables location services via iOS setting ====
Background: I am a user who has declined to enable location access, and has opened the app >1 time
Given that I enable location settings in the iOS Settings App
When my feed next updates
Then I should see a Nearby articles feed section
=== More Nearby View ===
==== Scenario: Disable location access while viewing Nearby articles view ====
Background: Location services is enabled
Given that I am viewing More Nearby
When I switch to the OS settings app and disable location services
Then I should see a dismissable alert view telling me I've disable location based articles
And I should see an "empty list" placeholder image
When I view the Explore feed
Then I should no longer see Nearby articles section
==== Scenario: Enable location access while viewing Nearby articles view ====
Background: Location services is disabled
Given that I am viewing More Nearby
Then I should see an "empty list" placeholder image
When I switch to the OS settings app and enable location services
Then I should see artitles near me in the Nearby articles view
When I view the feed
Then I should see the Nearby Articles section