@android
Feature: Android Content Sorting

Background:
    Given a valid test user

Scenario: Verify dynamic content sorting on various screens
    When I login to the android app
    Then I can see the catalog screen
        And The songs tab displays with data
        And The sorting option displayed should be 'STREAMS • 1 DAYS'
        And All songs sorted by the number of streams in descending order

    When I navigate to the playlists tab
    Then The sorting option displayed should be '1D STREAMS'
        And All playlists are displayed sorted by the '1D STREAMS' filter

    When I navigate to the songs tab
    Then The sorting option displayed should be 'STREAMS • 1 DAYS'
        And All songs sorted by the number of streams in descending order

    When I change the sorting option to 'Streams' for a period of '1' day
    Then All songs sorted by the number of streams in descending order

    When I change the sorting option to 'Release Date'
    Then All songs sorted by the release date

    When I navigate to the products tab
        And I change the sorting option to 'Streams' for a period of '28' days
    Then The sorting option displayed should be 'STREAMS • 28 DAYS'
        And All products sorted by the number of streams in descending order

    When I navigate to the artists tab
    Then The sorting option displayed should be 'STREAMS • 28 DAYS'
        And All artists sorted by the number of streams in descending order

    When I change the sorting option to 'Streams' for a period of 'All' time
    Then The sorting option displayed should be 'STREAMS • ALL TIME'
        And All artists sorted by the number of streams in descending order
