Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>tags/v28.0.0beta1
@@ -1591,126 +1591,6 @@ trigger: | |||
- pull_request | |||
- push | |||
--- | |||
kind: pipeline | |||
name: acceptance-app-files | |||
steps: | |||
- name: submodules | |||
image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest | |||
commands: | |||
- git submodule update --init | |||
- name: acceptance-app-files | |||
image: ghcr.io/nextcloud/continuous-integration-acceptance-php8.0:latest | |||
commands: | |||
- tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-app-files --selenium-server selenium:4444 allow-git-repository-modifications features/app-files.feature | |||
services: | |||
- name: selenium | |||
image: ghcr.io/nextcloud/continuous-integration-selenium:3.141.59 | |||
environment: | |||
# Reduce default log level for Selenium server (INFO) as it is too | |||
# verbose. | |||
JAVA_OPTS: -Dselenium.LOGGER.level=WARNING | |||
trigger: | |||
branch: | |||
- master | |||
- stable* | |||
event: | |||
- pull_request | |||
- push | |||
--- | |||
kind: pipeline | |||
name: acceptance-app-files-sharing | |||
steps: | |||
- name: submodules | |||
image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest | |||
commands: | |||
- git submodule update --init | |||
- name: acceptance-app-files-sharing | |||
image: ghcr.io/nextcloud/continuous-integration-acceptance-php8.0:latest | |||
commands: | |||
- tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-app-files-sharing --selenium-server selenium:4444 allow-git-repository-modifications features/app-files-sharing.feature | |||
services: | |||
- name: selenium | |||
image: ghcr.io/nextcloud/continuous-integration-selenium:3.141.59 | |||
environment: | |||
# Reduce default log level for Selenium server (INFO) as it is too | |||
# verbose. | |||
JAVA_OPTS: -Dselenium.LOGGER.level=WARNING | |||
trigger: | |||
branch: | |||
- master | |||
- stable* | |||
event: | |||
- pull_request | |||
- push | |||
--- | |||
kind: pipeline | |||
name: acceptance-app-files-sharing-link | |||
steps: | |||
- name: submodules | |||
image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest | |||
commands: | |||
- git submodule update --init | |||
- name: acceptance-app-files-sharing-link | |||
image: ghcr.io/nextcloud/continuous-integration-acceptance-php8.0:latest | |||
commands: | |||
- tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-app-files-sharing-link --selenium-server selenium:4444 allow-git-repository-modifications features/app-files-sharing-link.feature | |||
services: | |||
- name: selenium | |||
image: ghcr.io/nextcloud/continuous-integration-selenium:3.141.59 | |||
environment: | |||
# Reduce default log level for Selenium server (INFO) as it is too | |||
# verbose. | |||
JAVA_OPTS: -Dselenium.LOGGER.level=WARNING | |||
trigger: | |||
branch: | |||
- master | |||
- stable* | |||
event: | |||
- pull_request | |||
- push | |||
--- | |||
kind: pipeline | |||
name: acceptance-app-files-tags | |||
steps: | |||
- name: submodules | |||
image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest | |||
commands: | |||
- git submodule update --init | |||
- name: acceptance-app-files-tags | |||
image: ghcr.io/nextcloud/continuous-integration-acceptance-php8.0:latest | |||
commands: | |||
- tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-app-files-tags --selenium-server selenium:4444 allow-git-repository-modifications features/app-files-tags.feature | |||
services: | |||
- name: selenium | |||
image: ghcr.io/nextcloud/continuous-integration-selenium:3.141.59 | |||
environment: | |||
# Reduce default log level for Selenium server (INFO) as it is too | |||
# verbose. | |||
JAVA_OPTS: -Dselenium.LOGGER.level=WARNING | |||
trigger: | |||
branch: | |||
- master | |||
- stable* | |||
event: | |||
- pull_request | |||
- push | |||
--- | |||
kind: pipeline | |||
name: acceptance-header |
@@ -1,250 +0,0 @@ | |||
Feature: app-files-sharing-link | |||
Scenario: open the menu in a public shared link | |||
Given I act as John | |||
And I am logged in | |||
And I share the link for "welcome.txt" | |||
And I write down the shared link | |||
When I act as Jane | |||
And I visit the shared link I wrote down | |||
And I see that the current page is the shared link I wrote down | |||
And I open the Share menu | |||
Then I see that the Share menu is shown | |||
# TODO: disabled unreliable test | |||
# Scenario: hide download in a public shared link | |||
# Given I act as John | |||
# And I am logged in | |||
# And I share the link for "welcome.txt" | |||
# And I set the download of the shared link as hidden | |||
# And I write down the shared link | |||
# When I act as Jane | |||
# And I visit the shared link I wrote down | |||
# And I see that the current page is the shared link I wrote down | |||
# Then I see that the download button is not shown | |||
# And I see that the Share menu button is not shown | |||
# TODO: disabled unreliable test | |||
# Scenario: show download again in a public shared link | |||
# Given I act as John | |||
# And I am logged in | |||
# And I share the link for "welcome.txt" | |||
# And I set the download of the shared link as hidden | |||
# And I set the download of the shared link as shown | |||
# And I write down the shared link | |||
# When I act as Jane | |||
# And I visit the shared link I wrote down | |||
# And I see that the current page is the shared link I wrote down | |||
# Then I see that the download button is shown | |||
# And I open the Share menu | |||
# And I see that the Share menu is shown | |||
Scenario: open a subfolder in a public shared folder | |||
Given I act as John | |||
And I am logged in | |||
And I create a new folder named "Shared folder with subfolders" | |||
And I enter in the folder named "Shared folder with subfolders" | |||
And I create a new folder named "Subfolder" | |||
And I enter in the folder named "Subfolder" | |||
And I create a new folder named "Subsubfolder" | |||
And I see that the file list contains a file named "Subsubfolder" | |||
# The Files app is open again to reload the file list | |||
And I open the Files app | |||
And I share the link for "Shared folder with subfolders" | |||
And I write down the shared link | |||
When I act as Jane | |||
And I visit the shared link I wrote down | |||
And I see that the current page is the shared link I wrote down | |||
Then I see that the file list contains a file named "Subfolder" | |||
And I enter in the folder named "Subfolder" | |||
And I see that the file list contains a file named "Subsubfolder" | |||
Scenario: creation is not possible by default in a public shared folder | |||
Given I act as John | |||
And I am logged in | |||
And I create a new folder named "Shared folder" | |||
# To share the link the "Share" inline action has to be clicked but, as the | |||
# details view is opened automatically when the folder is created, clicking | |||
# on the inline action could fail if it is covered by the details view due | |||
# to its opening animation. Instead of ensuring that the animations of the | |||
# contents and the details view have both finished it is easier to close the | |||
# details view and wait until it is closed before continuing. | |||
And I close the details view | |||
And I see that the details view is closed | |||
And I share the link for "Shared folder" | |||
And I write down the shared link | |||
When I act as Jane | |||
And I visit the shared link I wrote down | |||
And I see that the current page is the shared link I wrote down | |||
And I see that the file list is eventually loaded | |||
Then I see that it is not possible to create new files | |||
Scenario: create folder in a public editable shared folder | |||
Given I act as John | |||
And I am logged in | |||
And I create a new folder named "Editable shared folder" | |||
# To share the link the "Share" inline action has to be clicked but, as the | |||
# details view is opened automatically when the folder is created, clicking | |||
# on the inline action could fail if it is covered by the details view due | |||
# to its opening animation. Instead of ensuring that the animations of the | |||
# contents and the details view have both finished it is easier to close the | |||
# details view and wait until it is closed before continuing. | |||
And I close the details view | |||
And I see that the details view is closed | |||
And I share the link for "Editable shared folder" | |||
And I set the shared link as editable | |||
And I write down the shared link | |||
When I act as Jane | |||
And I visit the shared link I wrote down | |||
And I see that the current page is the shared link I wrote down | |||
And I create a new folder named "Subfolder" | |||
Then I see that the file list contains a file named "Subfolder" | |||
Scenario: owner sees folder created in the public page of an editable shared folder | |||
Given I act as John | |||
And I am logged in | |||
And I create a new folder named "Editable shared folder" | |||
# To share the link the "Share" inline action has to be clicked but, as the | |||
# details view is opened automatically when the folder is created, clicking | |||
# on the inline action could fail if it is covered by the details view due | |||
# to its opening animation. Instead of ensuring that the animations of the | |||
# contents and the details view have both finished it is easier to close the | |||
# details view and wait until it is closed before continuing. | |||
And I close the details view | |||
And I see that the details view is closed | |||
And I share the link for "Editable shared folder" | |||
And I set the shared link as editable | |||
And I write down the shared link | |||
And I act as Jane | |||
And I visit the shared link I wrote down | |||
And I see that the current page is the shared link I wrote down | |||
And I create a new folder named "Subfolder" | |||
And I see that the file list contains a file named "Subfolder" | |||
When I act as John | |||
And I enter in the folder named "Editable shared folder" | |||
Then I see that the file list contains a file named "Subfolder" | |||
Scenario: set a password to a shared link | |||
Given I am logged in | |||
And I share the link for "welcome.txt" | |||
When I protect the shared link with the password "abcdef" | |||
Then I see that the password protect is disabled while loading | |||
And I see that the link share is password protected | |||
# As Talk is not enabled in the acceptance tests of the server the checkbox | |||
# is never shown. | |||
And I see that the checkbox to protect the password of the link share by Talk is not shown | |||
Scenario: access a shared link protected by password with a valid password | |||
Given I act as John | |||
And I am logged in | |||
And I share the link for "welcome.txt" protected by the password "abcdef" | |||
And I write down the shared link | |||
When I act as Jane | |||
And I visit the shared link I wrote down | |||
And I see that the current page is the Authenticate page for the shared link I wrote down | |||
And I authenticate with password "abcdef" | |||
Then I see that the current page is the shared link I wrote down | |||
And I see that the shared file preview shows the text "Welcome to your Nextcloud account!" | |||
Scenario: access a shared link protected by password with an invalid password | |||
Given I act as John | |||
And I am logged in | |||
And I share the link for "welcome.txt" protected by the password "abcdef" | |||
And I write down the shared link | |||
When I act as Jane | |||
And I visit the shared link I wrote down | |||
And I authenticate with password "fedcba" | |||
Then I see that the current page is the Authenticate page for the shared link I wrote down | |||
And I see that a wrong password for the shared file message is shown | |||
Scenario: access a direct download shared link protected by password with a valid password | |||
Given I act as John | |||
And I am logged in | |||
And I share the link for "welcome.txt" protected by the password "abcdef" | |||
And I write down the shared link | |||
When I act as Jane | |||
And I visit the direct download shared link I wrote down | |||
And I see that the current page is the Authenticate page for the direct download shared link I wrote down | |||
And I authenticate with password "abcdef" | |||
# download starts no page redirection | |||
And I see that the current page is the Authenticate page for the direct download shared link I wrote down | |||
Scenario: sharee can not reshare by link if resharing is disabled in the settings after the share is created | |||
Given I act as John | |||
And I am logged in as the admin | |||
And I act as Jane | |||
And I am logged in | |||
And I act as John | |||
And I rename "welcome.txt" to "farewell.txt" | |||
And I see that the file list contains a file named "farewell.txt" | |||
And I share "farewell.txt" with "user0" | |||
And I see that the file is shared with "user0" | |||
And I visit the admin settings page | |||
And I open the "Sharing" section of the "Administration" group | |||
And I disable resharing | |||
And I see that resharing is disabled | |||
When I act as Jane | |||
# The Files app is open again to reload the file list | |||
And I open the Files app | |||
Then I see that the file list contains a file named "farewell.txt" | |||
And I open the details view for "farewell.txt" | |||
And I see that the details view is open | |||
And I open the "Sharing" tab in the details view | |||
And I see that the "Sharing" tab in the details view is eventually loaded | |||
And I see that the file is shared with me by "admin" | |||
And I see that resharing the file by link is not available | |||
Scenario: sharee can unshare a reshare by link if resharing is disabled in the settings after the reshare is created | |||
Given I act as John | |||
And I am logged in as the admin | |||
And I act as Jane | |||
And I am logged in | |||
And I act as John | |||
And I rename "welcome.txt" to "farewell.txt" | |||
And I see that the file list contains a file named "farewell.txt" | |||
And I share "farewell.txt" with "user0" | |||
And I see that the file is shared with "user0" | |||
And I act as Jane | |||
# The Files app is open again to reload the file list | |||
And I open the Files app | |||
And I share the link for "farewell.txt" | |||
And I write down the shared link | |||
And I act as John | |||
And I visit the admin settings page | |||
And I open the "Sharing" section of the "Administration" group | |||
And I disable resharing | |||
And I see that resharing is disabled | |||
When I act as Jane | |||
# The Files app is open again to reload the file list | |||
And I open the Files app | |||
And I open the details view for "farewell.txt" | |||
And I see that the details view is open | |||
And I open the "Sharing" tab in the details view | |||
And I see that the "Sharing" tab in the details view is eventually loaded | |||
And I unshare the link share | |||
Then I see that resharing the file by link is not available | |||
Scenario: reshare by link can be accessed if resharing is disabled in the settings after the reshare is created | |||
Given I act as John | |||
And I am logged in as the admin | |||
And I act as Jane | |||
And I am logged in | |||
And I act as John | |||
And I rename "welcome.txt" to "farewell.txt" | |||
And I see that the file list contains a file named "farewell.txt" | |||
And I share "farewell.txt" with "user0" | |||
And I see that the file is shared with "user0" | |||
And I act as Jane | |||
# The Files app is open again to reload the file list | |||
And I open the Files app | |||
And I share the link for "farewell.txt" | |||
And I write down the shared link | |||
And I act as John | |||
And I visit the admin settings page | |||
And I open the "Sharing" section of the "Administration" group | |||
And I disable resharing | |||
And I see that resharing is disabled | |||
When I act as Jim | |||
And I visit the shared link I wrote down | |||
Then I see that the current page is the shared link I wrote down | |||
And I see that the shared file preview shows the text "Welcome to your Nextcloud account!" |
@@ -1,485 +0,0 @@ | |||
Feature: app-files-sharing | |||
Scenario: share a file with another user | |||
Given I act as John | |||
And I am logged in as the admin | |||
And I act as Jane | |||
And I am logged in | |||
And I act as John | |||
And I rename "welcome.txt" to "farewell.txt" | |||
And I see that the file list contains a file named "farewell.txt" | |||
When I share "farewell.txt" with "user0" | |||
And I see that the file is shared with "user0" | |||
And I act as Jane | |||
# The Files app is open again to reload the file list | |||
And I open the Files app | |||
Then I see that the file list contains a file named "farewell.txt" | |||
And I open the details view for "farewell.txt" | |||
And I see that the details view is open | |||
And I open the "Sharing" tab in the details view | |||
And I see that the "Sharing" tab in the details view is eventually loaded | |||
And I see that the file is shared with me by "admin" | |||
# Scenario: share a file with another user that needs to accept shares | |||
# Given I act as John | |||
# And I am logged in as the admin | |||
# And I act as Jane | |||
# And I am logged in | |||
# And I visit the settings page | |||
# And I open the "Sharing" section | |||
# And I disable accepting the shares by default | |||
# And I see that shares are not accepted by default | |||
# And I act as John | |||
# And I rename "welcome.txt" to "farewell.txt" | |||
# And I see that the file list contains a file named "farewell.txt" | |||
# When I share "farewell.txt" with "user0" | |||
# And I see that the file is shared with "user0" | |||
# And I act as Jane | |||
# And I open the Files app | |||
# And I see that the file list does not contain a file named "farewell.txt" | |||
# And I accept the share for "/farewell.txt" in the notifications | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# Then I see that the file list contains a file named "farewell.txt" | |||
# And I open the details view for "farewell.txt" | |||
# And I see that the details view is open | |||
# And I open the "Sharing" tab in the details view | |||
# And I see that the "Sharing" tab in the details view is eventually loaded | |||
# And I see that the file is shared with me by "admin" | |||
# | |||
# Scenario: share a file with another user who already has a file with that name | |||
# Given I act as John | |||
# And I am logged in as the admin | |||
# And I act as Jane | |||
# And I am logged in | |||
# And I act as John | |||
# When I share "welcome.txt" with "user0" | |||
# And I see that the file is shared with "user0" | |||
# And I act as Jane | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# Then I see that the file list contains a file named "welcome (2).txt" | |||
# And I open the details view for "welcome (2).txt" | |||
# And I see that the details view is open | |||
# And I open the "Sharing" tab in the details view | |||
# And I see that the "Sharing" tab in the details view is eventually loaded | |||
# And I see that the file is shared with me by "admin" | |||
# | |||
# Scenario: share a skeleton file with another user before first login | |||
# # If a file is shared with a user before her first login the skeleton would | |||
# # not have been created, so if the shared file has the same name as one from | |||
# # the skeleton the shared file will take its place and the skeleton file | |||
# # will not be added. | |||
# Given I act as John | |||
# And I am logged in as the admin | |||
# When I share "welcome.txt" with "user0" | |||
# And I see that the file is shared with "user0" | |||
# And I act as Jane | |||
# And I am logged in | |||
# Then I see that the file list contains a file named "welcome.txt" | |||
# And I open the details view for "welcome.txt" | |||
# And I see that the details view is open | |||
# And I open the "Sharing" tab in the details view | |||
# And I see that the "Sharing" tab in the details view is eventually loaded | |||
# And I see that the file is shared with me by "admin" | |||
# | |||
# Scenario: reshare a file with another user | |||
# Given I act as John | |||
# And I am logged in as the admin | |||
# And I act as Jane | |||
# And I am logged in | |||
# And I act as Jim | |||
# And I am logged in as "user1" | |||
# And I act as John | |||
# And I rename "welcome.txt" to "farewell.txt" | |||
# And I see that the file list contains a file named "farewell.txt" | |||
# And I share "farewell.txt" with "user0" | |||
# And I see that the file is shared with "user0" | |||
# And I act as Jane | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# When I share "farewell.txt" with "user1" | |||
# And I see that the file is shared with "user1" | |||
# And I act as Jim | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# Then I see that the file list contains a file named "farewell.txt" | |||
# And I open the details view for "farewell.txt" | |||
# And I see that the details view is open | |||
# And I open the "Sharing" tab in the details view | |||
# And I see that the "Sharing" tab in the details view is eventually loaded | |||
# And I see that the file is shared with me by "user0" | |||
# | |||
# Scenario: owner sees reshares with other users | |||
# Given I act as John | |||
# And I am logged in as the admin | |||
# And I act as Jane | |||
# And I am logged in | |||
# And I act as John | |||
# And I rename "welcome.txt" to "farewell.txt" | |||
# And I see that the file list contains a file named "farewell.txt" | |||
# And I share "farewell.txt" with "user0" | |||
# And I see that the file is shared with "user0" | |||
# And I act as Jane | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# And I share "farewell.txt" with "user1" | |||
# And I see that the file is shared with "user1" | |||
# When I act as John | |||
# # The Files app is open again to reload the file list and the shares | |||
# And I open the Files app | |||
# And I open the details view for "farewell.txt" | |||
# And I see that the details view is open | |||
# And I open the "Sharing" tab in the details view | |||
# And I see that the "Sharing" tab in the details view is eventually loaded | |||
# Then I see that the file is shared with "user0" | |||
# And I see that the file is shared with "user1" | |||
# | |||
# Scenario: share an empty folder with another user | |||
# Given I act as John | |||
# And I am logged in as the admin | |||
# And I act as Jane | |||
# And I am logged in | |||
# And I act as John | |||
# And I create a new folder named "Shared folder" | |||
# And I see that the file list contains a file named "Shared folder" | |||
# When I share "Shared folder" with "user0" | |||
# And I see that the file is shared with "user0" | |||
# And I act as Jane | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# Then I see that the file list contains a file named "Shared folder" | |||
# And I open the details view for "Shared folder" | |||
# And I see that the details view is open | |||
# And I open the "Sharing" tab in the details view | |||
# And I see that the "Sharing" tab in the details view is eventually loaded | |||
# And I see that the file is shared with me by "admin" | |||
# | |||
# Scenario: sharee sees a folder created by the owner in a shared folder | |||
# Given I act as John | |||
# And I am logged in as the admin | |||
# And I act as Jane | |||
# And I am logged in | |||
# And I act as John | |||
# And I create a new folder named "Shared folder" | |||
# And I see that the file list contains a file named "Shared folder" | |||
# And I share "Shared folder" with "user0" | |||
# And I see that the file is shared with "user0" | |||
# And I enter in the folder named "Shared folder" | |||
# And I create a new folder named "Subfolder" | |||
# And I see that the file list contains a file named "Subfolder" | |||
# When I act as Jane | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# And I enter in the folder named "Shared folder" | |||
# Then I see that the file list contains a file named "Subfolder" | |||
# | |||
# Scenario: owner sees a folder created by the sharee in a shared folder | |||
# Given I act as John | |||
# And I am logged in as the admin | |||
# And I act as Jane | |||
# And I am logged in | |||
# And I act as John | |||
# And I create a new folder named "Shared folder" | |||
# And I see that the file list contains a file named "Shared folder" | |||
# And I share "Shared folder" with "user0" | |||
# And I see that the file is shared with "user0" | |||
# And I act as Jane | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# And I enter in the folder named "Shared folder" | |||
# And I create a new folder named "Subfolder" | |||
# And I see that the file list contains a file named "Subfolder" | |||
# When I act as John | |||
# And I enter in the folder named "Shared folder" | |||
# Then I see that the file list contains a file named "Subfolder" | |||
# | |||
# Scenario: resharee sees a folder created by the owner in a shared folder | |||
# Given I act as John | |||
# And I am logged in as the admin | |||
# And I act as Jane | |||
# And I am logged in | |||
# And I act as Jim | |||
# And I am logged in as "user1" | |||
# And I act as John | |||
# And I create a new folder named "Shared folder" | |||
# And I see that the file list contains a file named "Shared folder" | |||
# And I share "Shared folder" with "user0" | |||
# And I see that the file is shared with "user0" | |||
# And I act as Jane | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# And I share "Shared folder" with "user1" | |||
# And I act as John | |||
# And I enter in the folder named "Shared folder" | |||
# And I create a new folder named "Subfolder" | |||
# And I see that the file list contains a file named "Subfolder" | |||
# When I act as Jim | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# And I enter in the folder named "Shared folder" | |||
# Then I see that the file list contains a file named "Subfolder" | |||
# | |||
# Scenario: owner sees a folder created by the resharee in a shared folder | |||
# Given I act as John | |||
# And I am logged in as the admin | |||
# And I act as Jane | |||
# And I am logged in | |||
# And I act as Jim | |||
# And I am logged in as "user1" | |||
# And I act as John | |||
# And I create a new folder named "Shared folder" | |||
# And I see that the file list contains a file named "Shared folder" | |||
# And I share "Shared folder" with "user0" | |||
# And I see that the file is shared with "user0" | |||
# And I act as Jane | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# And I share "Shared folder" with "user1" | |||
# And I act as Jim | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# And I enter in the folder named "Shared folder" | |||
# And I create a new folder named "Subfolder" | |||
# And I see that the file list contains a file named "Subfolder" | |||
# When I act as John | |||
# And I enter in the folder named "Shared folder" | |||
# Then I see that the file list contains a file named "Subfolder" | |||
# | |||
# Scenario: sharer does not see resharing option for a folder if resharing is disabled in the settings after the share is created | |||
# Given I am logged in as the admin | |||
# And I create a new folder named "Shared folder" | |||
# And I see that the file list contains a file named "Shared folder" | |||
# And I share "Shared folder" with "user0" | |||
# And I see that the file is shared with "user0" | |||
# When I visit the admin settings page | |||
# And I open the "Sharing" section of the "Administration" group | |||
# And I disable resharing | |||
# And I see that resharing is disabled | |||
# Then I open the Files app | |||
# And I open the details view for "Shared folder" | |||
# And I see that the details view is open | |||
# And I open the "Sharing" tab in the details view | |||
# And I see that the "Sharing" tab in the details view is eventually loaded | |||
# And I see that resharing for "user0" is not available | |||
# | |||
# Scenario: sharee can not reshare a folder if resharing is disabled in the settings after the share is created | |||
# Given I act as John | |||
# And I am logged in as the admin | |||
# And I act as Jane | |||
# And I am logged in | |||
# And I act as John | |||
# And I create a new folder named "Shared folder" | |||
# And I see that the file list contains a file named "Shared folder" | |||
# And I share "Shared folder" with "user0" | |||
# And I see that the file is shared with "user0" | |||
# And I visit the admin settings page | |||
# And I open the "Sharing" section of the "Administration" group | |||
# And I disable resharing | |||
# And I see that resharing is disabled | |||
# When I act as Jane | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# Then I see that the file list contains a file named "Shared folder" | |||
# And I open the details view for "Shared folder" | |||
# And I see that the details view is open | |||
# And I open the "Sharing" tab in the details view | |||
# And I see that the "Sharing" tab in the details view is eventually loaded | |||
# And I see that the file is shared with me by "admin" | |||
# And I see that resharing the file is not allowed | |||
# | |||
# Scenario: sharee can unshare a folder if resharing is disabled in the settings after the share is created | |||
# Given I act as John | |||
# And I am logged in as the admin | |||
# And I act as Jane | |||
# And I am logged in | |||
# And I act as John | |||
# And I create a new folder named "Shared folder" | |||
# And I see that the file list contains a file named "Shared folder" | |||
# And I share "Shared folder" with "user0" | |||
# And I see that the file is shared with "user0" | |||
# And I act as Jane | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# And I share "Shared folder" with "user1" | |||
# And I act as John | |||
# And I visit the admin settings page | |||
# And I open the "Sharing" section of the "Administration" group | |||
# And I disable resharing | |||
# And I see that resharing is disabled | |||
# When I act as Jane | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# Then I see that the file list contains a file named "Shared folder" | |||
# And I open the details view for "Shared folder" | |||
# And I see that the details view is open | |||
# And I open the "Sharing" tab in the details view | |||
# And I see that the "Sharing" tab in the details view is eventually loaded | |||
# And I see that the file is shared with me by "admin" | |||
# And I unshare the share with "user1" | |||
# And I see that the file is not shared with "user1" | |||
# | |||
# Scenario: resharee sees a folder created by the owner in a shared folder if resharing is disabled in the settings after the share is created | |||
# Given I act as John | |||
# And I am logged in as the admin | |||
# And I act as Jane | |||
# And I am logged in | |||
# And I act as Jim | |||
# And I am logged in as "user1" | |||
# And I act as John | |||
# And I create a new folder named "Shared folder" | |||
# And I see that the file list contains a file named "Shared folder" | |||
# And I share "Shared folder" with "user0" | |||
# And I see that the file is shared with "user0" | |||
# And I act as Jane | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# And I share "Shared folder" with "user1" | |||
# And I act as John | |||
# And I visit the admin settings page | |||
# And I open the "Sharing" section of the "Administration" group | |||
# And I disable resharing | |||
# And I see that resharing is disabled | |||
# And I open the Files app | |||
# And I enter in the folder named "Shared folder" | |||
# And I create a new folder named "Subfolder" | |||
# And I see that the file list contains a file named "Subfolder" | |||
# When I act as Jim | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# And I enter in the folder named "Shared folder" | |||
# Then I see that the file list contains a file named "Subfolder" | |||
# | |||
# Scenario: sharee can not reshare a folder if the sharer disables it | |||
# Given I act as John | |||
# And I am logged in as the admin | |||
# And I act as Jane | |||
# And I am logged in | |||
# And I act as John | |||
# And I create a new folder named "Shared folder" | |||
# And I see that the file list contains a file named "Shared folder" | |||
# And I share "Shared folder" with "user0" | |||
# And I see that the file is shared with "user0" | |||
# And I set the share with "user0" as not reshareable | |||
# And I see that "user0" can not reshare the share | |||
# When I act as Jane | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# Then I see that the file list contains a file named "Shared folder" | |||
# And I open the details view for "Shared folder" | |||
# And I see that the details view is open | |||
# And I open the "Sharing" tab in the details view | |||
# And I see that the "Sharing" tab in the details view is eventually loaded | |||
# And I see that the file is shared with me by "admin" | |||
# And I see that resharing the file is not allowed | |||
# | |||
# Scenario: sharee can not reshare a subfolder if the sharer disables it for the parent folder | |||
# Given I act as John | |||
# And I am logged in as the admin | |||
# And I act as Jane | |||
# And I am logged in | |||
# And I act as John | |||
# And I create a new folder named "Shared folder" | |||
# And I see that the file list contains a file named "Shared folder" | |||
# And I share "Shared folder" with "user0" | |||
# And I see that the file is shared with "user0" | |||
# And I set the share with "user0" as not reshareable | |||
# And I see that "user0" can not reshare the share | |||
# And I enter in the folder named "Shared folder" | |||
# And I create a new folder named "Subfolder" | |||
# And I see that the file list contains a file named "Subfolder" | |||
# When I act as Jane | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# And I enter in the folder named "Shared folder" | |||
# Then I see that the file list contains a file named "Subfolder" | |||
# And I open the details view for "Subfolder" | |||
# And I see that the details view is open | |||
# And I open the "Sharing" tab in the details view | |||
# And I see that the "Sharing" tab in the details view is eventually loaded | |||
# And I see that resharing the file is not allowed | |||
# | |||
# Scenario: sharee can not reshare a file with edit permission if the sharer disables it | |||
# Given I act as John | |||
# And I am logged in as the admin | |||
# And I act as Jane | |||
# And I am logged in | |||
# And I act as John | |||
# And I rename "welcome.txt" to "farewell.txt" | |||
# And I see that the file list contains a file named "farewell.txt" | |||
# And I share "farewell.txt" with "user0" | |||
# And I see that the file is shared with "user0" | |||
# And I set the share with "user0" as not editable | |||
# And I see that "user0" can not edit the share | |||
# When I act as Jane | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# And I share "farewell.txt" with "user1" | |||
# Then I see that the file is shared with "user1" | |||
# And I see that "user1" can not edit the share | |||
# And I see that "user1" can not be allowed to edit the share | |||
# TODO: disabled unreliable test | |||
# Scenario: sharee can not reshare a folder with create permission if the sharer disables it | |||
# Given I act as John | |||
# And I am logged in as the admin | |||
# And I act as Jane | |||
# And I am logged in | |||
# And I act as John | |||
# And I create a new folder named "Shared folder" | |||
# And I see that the file list contains a file named "Shared folder" | |||
# And I share "Shared folder" with "user0" | |||
# And I see that the file is shared with "user0" | |||
# And I set the share with "user0" as not creatable | |||
# And I see that "user0" can not create in the share | |||
# When I act as Jane | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# And I share "Shared folder" with "user1" | |||
# Then I see that the file is shared with "user1" | |||
# And I see that "user1" can not create in the share | |||
# And I see that "user1" can not be allowed to create in the share | |||
# TODO: disabled unreliable test | |||
# Scenario: sharee can revoke create permission from reshare after the sharer disabled it | |||
# Given I act as John | |||
# And I am logged in as the admin | |||
# And I act as Jane | |||
# And I am logged in | |||
# And I act as Jim | |||
# And I am logged in as "user1" | |||
# And I act as John | |||
# And I create a new folder named "Shared folder" | |||
# And I see that the file list contains a file named "Shared folder" | |||
# And I share "Shared folder" with "user0" | |||
# And I see that the file is shared with "user0" | |||
# And I act as Jane | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# And I share "Shared folder" with "user1" | |||
# And I see that the file is shared with "user1" | |||
# And I act as John | |||
# And I set the share with "user0" as not creatable | |||
# And I see that "user0" can not create in the share | |||
# And I act as Jim | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# And I enter in the folder named "Shared folder" | |||
# # Creation is still allowed in already created reshares | |||
# And I create a new folder named "Subfolder" | |||
# And I see that the file list contains a file named "Subfolder" | |||
# When I act as Jane | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# And I open the details view for "Shared folder" | |||
# And I see that the details view is open | |||
# And I open the "Sharing" tab in the details view | |||
# And I see that the "Sharing" tab in the details view is eventually loaded | |||
# And I set the share with "user1" as not creatable | |||
# Then I see that "user1" can not create in the share | |||
# And I see that "user1" can not be allowed to create in the share | |||
# And I act as Jim | |||
# # The Files app is open again to reload the file list | |||
# And I open the Files app | |||
# And I enter in the folder named "Shared folder" | |||
# And I see that it is not possible to create new files |
@@ -1,92 +0,0 @@ | |||
@apache | |||
Feature: app-files-tags | |||
# Scenario: show the input field for tags in the details view | |||
# Given I am logged in | |||
# And I open the details view for "welcome.txt" | |||
# And I see that the details view is open | |||
# When I open the input field for tags in the details view | |||
# Then I see that the input field for tags in the details view is shown | |||
# Scenario: show the input field for tags in the details view after closing and opening the details view again | |||
# Given I am logged in | |||
# And I open the details view for "welcome.txt" | |||
# And I see that the details view is open | |||
# And I close the details view | |||
# And I see that the details view is closed | |||
# And I open the details view for "welcome.txt" | |||
# And I see that the details view is open | |||
# When I open the input field for tags in the details view | |||
# Then I see that the input field for tags in the details view is shown | |||
Scenario: create tags using the Administration settings | |||
Given I am logged in as the admin | |||
And I visit the admin settings page | |||
And I open the "Basic settings" section of the "Administration" group | |||
# The "create" button does nothing before JavaScript was initialized, and | |||
# the only way to detect that is waiting for the button to select tags to be | |||
# shown. | |||
And I see that the button to select tags is shown | |||
When I create the tag "tag1" in the settings | |||
Then I see that the dropdown for tags in the settings eventually contains the tag "tag1" | |||
# Scenario: add tags using the dropdown in the details view | |||
# Given I am logged in as the admin | |||
# And I visit the admin settings page | |||
# And I open the "Basic settings" section of the "Administration" group | |||
# # The "create" button does nothing before JavaScript was initialized, and | |||
# # the only way to detect that is waiting for the button to select tags to be | |||
# # shown. | |||
# And I see that the button to select tags is shown | |||
# And I create the tag "tag1" in the settings | |||
# And I create the tag "tag2" in the settings | |||
# And I create the tag "tag3" in the settings | |||
# And I create the tag "tag4" in the settings | |||
# And I see that the dropdown for tags in the settings eventually contains the tag "tag1" | |||
# And I see that the dropdown for tags in the settings eventually contains the tag "tag2" | |||
# And I see that the dropdown for tags in the settings eventually contains the tag "tag3" | |||
# And I see that the dropdown for tags in the settings eventually contains the tag "tag4" | |||
# And I log out | |||
# And I am logged in | |||
# And I open the details view for "welcome.txt" | |||
# And I open the input field for tags in the details view | |||
# # When the input field is opened the dropdown is also opened automatically. | |||
# When I check the tag "tag2" in the dropdown for tags in the details view | |||
# And I check the tag "tag4" in the dropdown for tags in the details view | |||
# Then I see that the tag "tag2" in the dropdown for tags in the details view is checked | |||
# And I see that the tag "tag4" in the dropdown for tags in the details view is checked | |||
# And I see that the input field for tags in the details view contains the tag "tag2" | |||
# And I see that the input field for tags in the details view contains the tag "tag4" | |||
# | |||
# Scenario: remove tags using the dropdown in the details view | |||
# Given I am logged in as the admin | |||
# And I visit the admin settings page | |||
# And I open the "Basic settings" section of the "Administration" group | |||
# # The "create" button does nothing before JavaScript was initialized, and | |||
# # the only way to detect that is waiting for the button to select tags to be | |||
# # shown. | |||
# And I see that the button to select tags is shown | |||
# And I create the tag "tag1" in the settings | |||
# And I create the tag "tag2" in the settings | |||
# And I create the tag "tag3" in the settings | |||
# And I create the tag "tag4" in the settings | |||
# And I see that the dropdown for tags in the settings eventually contains the tag "tag1" | |||
# And I see that the dropdown for tags in the settings eventually contains the tag "tag2" | |||
# And I see that the dropdown for tags in the settings eventually contains the tag "tag3" | |||
# And I see that the dropdown for tags in the settings eventually contains the tag "tag4" | |||
# And I log out | |||
# And I am logged in | |||
# And I open the details view for "welcome.txt" | |||
# And I open the input field for tags in the details view | |||
# # When the input field is opened the dropdown is also opened automatically. | |||
# And I check the tag "tag2" in the dropdown for tags in the details view | |||
# And I check the tag "tag4" in the dropdown for tags in the details view | |||
# And I check the tag "tag3" in the dropdown for tags in the details view | |||
# When I uncheck the tag "tag2" in the dropdown for tags in the details view | |||
# And I uncheck the tag "tag4" in the dropdown for tags in the details view | |||
# Then I see that the tag "tag2" in the dropdown for tags in the details view is not checked | |||
# And I see that the tag "tag4" in the dropdown for tags in the details view is not checked | |||
# And I see that the tag "tag3" in the dropdown for tags in the details view is checked | |||
# And I see that the input field for tags in the details view does not contain the tag "tag2" | |||
# And I see that the input field for tags in the details view does not contain the tag "tag4" | |||
# And I see that the input field for tags in the details view contains the tag "tag3" |
@@ -1,303 +0,0 @@ | |||
@apache | |||
Feature: app-files | |||
Scenario: open and close the details view | |||
Given I am logged in | |||
When I open the details view for "welcome.txt" | |||
And I see that the details view is open | |||
And I close the details view | |||
Then I see that the details view is closed | |||
Scenario: open and close the details view twice | |||
Given I am logged in | |||
And I open the details view for "welcome.txt" | |||
And I see that the details view is open | |||
And I close the details view | |||
And I see that the details view is closed | |||
When I open the details view for "welcome.txt" | |||
And I see that the details view is open | |||
And I close the details view | |||
Then I see that the details view is closed | |||
Scenario: open and close the details view again after coming back from a different section | |||
Given I am logged in | |||
And I open the details view for "welcome.txt" | |||
And I see that the details view is open | |||
And I close the details view | |||
And I see that the details view is closed | |||
And I open the "Recent" section | |||
And I see that the current section is "Recent" | |||
# The acceptance tests using the recent view fail since the vue migration. | |||
# The step is looking for a row in the filelist with a span having the class nametext, matching the | |||
# file name "welcome.txt" and button inside having the class action-menu. The markup for the files list | |||
# looks very different after the vue migration and therefor the test is failing. | |||
#And I open the details view for "welcome.txt" | |||
#And I see that the details view is open | |||
#And I close the details view | |||
#And I see that the details view is closed | |||
When I open the "All files" section | |||
And I see that the current section is "All files" | |||
And I open the details view for "welcome.txt" | |||
And I see that the details view is open | |||
And I close the details view | |||
Then I see that the details view is closed | |||
# Scenario: viewing a favorite file in its folder shows the correct sidebar view | |||
# Given I am logged in | |||
# And I create a new folder named "other" | |||
# And I mark "other" as favorite | |||
# And I mark "welcome.txt" as favorite | |||
# And I see that "other" is marked as favorite | |||
# And I see that "welcome.txt" is marked as favorite | |||
# And I open the "Favorites" section | |||
# And I open the details view for "other" | |||
# And I see that the details view is open | |||
# And I see that the file name shown in the details view is "other" | |||
# When I view "welcome.txt" in folder | |||
# Then I see that the current section is "All files" | |||
# And I see that the details view is open | |||
# And I see that the file name shown in the details view is "welcome.txt" | |||
# When I open the details view for "other" | |||
# And I see that the file name shown in the details view is "other" | |||
# Scenario: viewing a favorite file in its folder does not prevent opening the details view in "All files" section | |||
# Given I am logged in | |||
# And I mark "welcome.txt" as favorite | |||
# And I see that "welcome.txt" is marked as favorite | |||
# And I open the "Favorites" section | |||
# And I open the details view for "welcome.txt" | |||
# And I see that the details view is open | |||
# And I view "welcome.txt" in folder | |||
# And I see that the current section is "All files" | |||
# When I open the details view for "welcome.txt" | |||
# Then I see that the details view is open | |||
# Scenario: show recent files | |||
# Given I am logged in | |||
# And I create a new folder named "Folder just created" | |||
# When I open the "Recent" section | |||
# Then I see that the current section is "Recent" | |||
# Then I see that the file list contains a file named "Folder just created" | |||
# Scenario: show recent files for a second time | |||
# Given I am logged in | |||
# And I open the "Recent" section | |||
# And I see that the current section is "Recent" | |||
# And I open the "All files" section | |||
# And I see that the current section is "All files" | |||
# And I create a new folder named "Folder just created" | |||
# When I open the "Recent" section | |||
# Then I see that the current section is "Recent" | |||
# Then I see that the file list contains a file named "Folder just created" | |||
# Scenario: show favorites | |||
# Given I am logged in | |||
# And I mark "welcome.txt" as favorite | |||
# When I open the "Favorites" section | |||
# Then I see that the current section is "Favorites" | |||
# Then I see that the file list contains a file named "welcome.txt" | |||
# Scenario: show favorites for a second time | |||
# Given I am logged in | |||
# And I open the "Favorites" section | |||
# And I see that the current section is "Favorites" | |||
# And I open the "All files" section | |||
# And I see that the current section is "All files" | |||
# And I mark "welcome.txt" as favorite | |||
# When I open the "Favorites" section | |||
# Then I see that the current section is "Favorites" | |||
# Then I see that the file list contains a file named "welcome.txt" | |||
# TODO: disabled unreliable test | |||
# Scenario: show shares | |||
# Given I am logged in | |||
# And I share the link for "welcome.txt" | |||
# When I open the "Shares" section | |||
# Then I see that the current section is "Shares" | |||
# Then I see that the file list contains a file named "welcome.txt" | |||
# Scenario: show shares for a second time | |||
# Given I am logged in | |||
# And I open the "Shares" section | |||
# And I see that the current section is "Shares" | |||
# And I open the "All files" section | |||
# And I see that the current section is "All files" | |||
# And I share the link for "welcome.txt" | |||
# When I open the "Shares" section | |||
# Then I see that the current section is "Shares" | |||
# Then I see that the file list contains a file named "welcome.txt" | |||
# Scenario: show deleted files | |||
# Given I am logged in | |||
# And I delete "welcome.txt" | |||
# When I open the "Deleted files" section | |||
# Then I see that the current section is "Deleted files" | |||
# Then I see that the file list contains a file named "welcome.txt" | |||
# Scenario: show deleted files for a second time | |||
# Given I am logged in | |||
# And I open the "Deleted files" section | |||
# And I see that the current section is "Deleted files" | |||
# And I open the "All files" section | |||
# And I see that the current section is "All files" | |||
# And I delete "welcome.txt" | |||
# When I open the "Deleted files" section | |||
# Then I see that the current section is "Deleted files" | |||
# Then I see that the file list contains a file named "welcome.txt" | |||
# Scenario: move a file to another folder | |||
# Given I am logged in | |||
# And I create a new folder named "Destination" | |||
# When I start the move or copy operation for "welcome.txt" | |||
# And I select "Destination" in the file picker | |||
# And I move to the last selected folder in the file picker | |||
# Then I see that the file list does not contain a file named "welcome.txt" | |||
# And I enter in the folder named "Destination" | |||
# And I see that the file list contains a file named "welcome.txt" | |||
# Scenario: move a selection to another folder | |||
# Given I am logged in | |||
# And I create a new folder named "Folder" | |||
# And I create a new folder named "Not selected folder" | |||
# And I create a new folder named "Destination" | |||
# When I select "welcome.txt" | |||
# And I select "Folder" | |||
# And I start the move or copy operation for the selected files | |||
# And I select "Destination" in the file picker | |||
# And I move to the last selected folder in the file picker | |||
# Then I see that the file list does not contain a file named "welcome.txt" | |||
# And I see that the file list does not contain a file named "Folder" | |||
# And I see that the file list contains a file named "Not selected folder" | |||
# And I enter in the folder named "Destination" | |||
# And I see that the file list contains a file named "welcome.txt" | |||
# And I see that the file list contains a file named "Folder" | |||
# And I see that the file list does not contain a file named "Not selected folder" | |||
# Scenario: copy a file to another folder | |||
# Given I am logged in | |||
# And I create a new folder named "Destination" | |||
# When I start the move or copy operation for "welcome.txt" | |||
# And I select "Destination" in the file picker | |||
# And I copy to the last selected folder in the file picker | |||
# Then I enter in the folder named "Destination" | |||
# # The file will appear in the destination once the copy operation finishes | |||
# And I see that the file list contains a file named "welcome.txt" | |||
# # The Files app is open again to reload the file list in the root folder | |||
# And I open the Files app | |||
# And I see that the file list contains a file named "welcome.txt" | |||
# Scenario: copy a selection to another folder | |||
# Given I am logged in | |||
# And I create a new folder named "Folder" | |||
# And I create a new folder named "Not selected folder" | |||
# And I create a new folder named "Destination" | |||
# When I select "welcome.txt" | |||
# And I select "Folder" | |||
# And I start the move or copy operation for the selected files | |||
# And I select "Destination" in the file picker | |||
# And I copy to the last selected folder in the file picker | |||
# Then I enter in the folder named "Destination" | |||
# # The files will appear in the destination once the copy operation finishes | |||
# And I see that the file list contains a file named "welcome.txt" | |||
# And I see that the file list contains a file named "Folder" | |||
# And I see that the file list does not contain a file named "Not selected folder" | |||
# # The Files app is open again to reload the file list in the root folder | |||
# And I open the Files app | |||
# And I see that the file list contains a file named "welcome.txt" | |||
# And I see that the file list contains a file named "Folder" | |||
# And I see that the file list contains a file named "Not selected folder" | |||
Scenario: copy a file in its same folder | |||
Given I am logged in | |||
When I start the move or copy operation for "welcome.txt" | |||
# No folder was explicitly selected, so the last selected folder is the | |||
# current folder. | |||
And I copy to the last selected folder in the file picker | |||
Then I see that the file list contains a file named "welcome.txt" | |||
And I see that the file list contains a file named "welcome (copy).txt" | |||
Scenario: copy a file twice in its same folder | |||
Given I am logged in | |||
And I start the move or copy operation for "welcome.txt" | |||
# No folder was explicitly selected, so the last selected folder is the | |||
# current folder. | |||
And I copy to the last selected folder in the file picker | |||
When I start the move or copy operation for "welcome.txt" | |||
And I copy to the last selected folder in the file picker | |||
Then I see that the file list contains a file named "welcome.txt" | |||
And I see that the file list contains a file named "welcome (copy).txt" | |||
And I see that the file list contains a file named "welcome (copy 2).txt" | |||
Scenario: copy a copy of a file in its same folder | |||
Given I am logged in | |||
And I start the move or copy operation for "welcome.txt" | |||
# No folder was explicitly selected, so the last selected folder is the | |||
# current folder. | |||
And I copy to the last selected folder in the file picker | |||
When I start the move or copy operation for "welcome (copy).txt" | |||
And I copy to the last selected folder in the file picker | |||
Then I see that the file list contains a file named "welcome.txt" | |||
And I see that the file list contains a file named "welcome (copy).txt" | |||
And I see that the file list contains a file named "welcome (copy 2).txt" | |||
# Scenario: rename a file with the details view open | |||
# Given I am logged in | |||
# And I open the details view for "welcome.txt" | |||
# When I rename "welcome.txt" to "farewell.txt" | |||
# Then I see that the file list contains a file named "farewell.txt" | |||
# And I see that the file name shown in the details view is "farewell.txt" | |||
Scenario: marking a file as favorite causes the file list to be sorted again | |||
Given I am logged in | |||
And I create a new folder named "A name alphabetically lower than welcome.txt" | |||
And I see that "A name alphabetically lower than welcome.txt" precedes "welcome.txt" in the file list | |||
# To mark the file as favorite the file actions menu has to be shown but, as | |||
# the details view is opened automatically when the folder is created, | |||
# clicking on the menu trigger could fail if it is covered by the details | |||
# view due to its opening animation. Instead of ensuring that the animations | |||
# of the contents and the details view have both finished it is easier to | |||
# close the details view and wait until it is closed before continuing. | |||
And I close the details view | |||
And I see that the details view is closed | |||
When I mark "welcome.txt" as favorite | |||
Then I see that "welcome.txt" is marked as favorite | |||
And I see that "welcome.txt" precedes "A name alphabetically lower than welcome.txt" in the file list | |||
Scenario: unmarking a file as favorite causes the file list to be sorted again | |||
Given I am logged in | |||
And I create a new folder named "A name alphabetically lower than welcome.txt" | |||
And I see that "A name alphabetically lower than welcome.txt" precedes "welcome.txt" in the file list | |||
# To mark the file as favorite the file actions menu has to be shown but, as | |||
# the details view is opened automatically when the folder is created, | |||
# clicking on the menu trigger could fail if it is covered by the details | |||
# view due to its opening animation. Instead of ensuring that the animations | |||
# of the contents and the details view have both finished it is easier to | |||
# close the details view and wait until it is closed before continuing. | |||
And I close the details view | |||
And I see that the details view is closed | |||
And I mark "welcome.txt" as favorite | |||
And I see that "welcome.txt" is marked as favorite | |||
And I see that "welcome.txt" precedes "A name alphabetically lower than welcome.txt" in the file list | |||
When I unmark "welcome.txt" as favorite | |||
Then I see that "welcome.txt" is not marked as favorite | |||
And I see that "A name alphabetically lower than welcome.txt" precedes "welcome.txt" in the file list | |||
Scenario: mark a file as favorite in the details view | |||
Given I am logged in | |||
And I open the details view for "welcome.txt" | |||
And I see that the details view is open | |||
When I mark the file as favorite in the details view | |||
Then I see that "welcome.txt" is marked as favorite | |||
And I see that the file is marked as favorite in the details view | |||
Scenario: unmark a file as favorite in the details view | |||
Given I am logged in | |||
And I open the details view for "welcome.txt" | |||
And I see that the details view is open | |||
And I mark the file as favorite in the details view | |||
And I see that "welcome.txt" is marked as favorite | |||
And I see that the file is marked as favorite in the details view | |||
When I unmark the file as favorite in the details view | |||
Then I see that "welcome.txt" is not marked as favorite | |||
And I see that the file is not marked as favorite in the details view |