Feature: filter activity for user
    As a user
    I want to filter activity
    So that I can view activity of specific user

    @smoke
    Scenario: filter synced activities
        Given user "Alice" has been created in the server with default attributes
        And user "Brian" has been created in the server with default attributes
        And user "Alice" has created folder "simple-folder" in the server
        And user "Brian" has created folder "brian-folder" in the server
        And the user has set up the following accounts with default settings:
            | users |
            | Alice |
            | Brian |
        When the user opens the activity tab
        And the user selects "Local Activity" tab in the activity
        And the user checks the activities of account "Alice Hansen@%local_server_hostname%"
        Then the following activities should be displayed in synced table
            | resource      | action     | account                              |
            | simple-folder | Downloaded | Alice Hansen@%local_server_hostname% |
        But the following activities should not be displayed in synced table
            | resource     | action     | account                              |
            | brian-folder | Downloaded | Brian Murphy@%local_server_hostname% |

    @skipOnWindows
    Scenario: filter not synced activities (Linux only)
        Given user "Alice" has been created in the server with default attributes
        And user "Alice" has set up a client with default settings
        And user "Alice" has created a folder "Folder1" inside the sync folder
        When user "Alice" creates the following files inside the sync folder:
            | files             |
            | /.htaccess        |
            | /Folder1/a\\a.txt |
        And the user opens the activity tab
        And the user selects "Not Synced" tab in the activity
        Then the file "Folder1/a\\a.txt" should be blacklisted
        And the file ".htaccess" should be excluded
        When the user unchecks the "Excluded" filter
        Then the following activities should be displayed in not synced table
            | resource         | status      | account                              |
            | Folder1/a\\a.txt | Blacklisted | Alice Hansen@%local_server_hostname% |

    @skipOnLinux
    Scenario: filter not synced activities (Windows only)
        Given user "Alice" has been created in the server with default attributes
        And user "Alice" has set up a client with default settings
        When user "Alice" creates the following files inside the sync folder:
            | files      |
            | /.htaccess |
        And the user opens the activity tab
        And the user selects "Not Synced" tab in the activity
        Then the file ".htaccess" should be excluded
        When the user unchecks the "Excluded" filter
        Then the following activities should not be displayed in not synced table
            | resource  | status   | account                              |
            | .htaccess | Excluded | Alice Hansen@%local_server_hostname% |
