Skip to content

Commit

Permalink
Rewrite tests to use details button in context menu for sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
kulmann committed Sep 1, 2021
1 parent ee85491 commit 0874659
Show file tree
Hide file tree
Showing 27 changed files with 468 additions and 518 deletions.
12 changes: 4 additions & 8 deletions dev/docker/oc10.web.config.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
{
"server" : "http://host.docker.internal:8080",
"server": "http://host.docker.internal:8080",
"auth": {
"clientId": "M8W5mo3wQV3VHWYsaYpWhkr8dwa949i4GljCkedHhl7GWqmHMkxSeJgK2PcS0jt5",
"url": "http://host.docker.internal:8080/index.php/apps/oauth2/api/v1/token",
"authUrl": "http://host.docker.internal:8080/index.php/apps/oauth2/authorize"
},
"apps": [
"files",
"media-viewer",
"search"
],
"applications" : [
"apps": ["files", "media-viewer", "markdown-editor", "search"],
"applications": [
{
"title": {
"en": "Classic Design",
Expand All @@ -32,4 +28,4 @@
"url": "http://host.docker.internal:8080/index.php/settings/personal"
}
]
}
}
68 changes: 32 additions & 36 deletions dev/docker/ocis.web.config.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,35 @@
{
"server": "https://host.docker.internal:9200",
"theme": "https://host.docker.internal:9200/themes/owncloud/theme.json",
"version": "0.1.0",
"openIdConnect": {
"metadata_url": "https://host.docker.internal:9200/.well-known/openid-configuration",
"authority": "https://host.docker.internal:9200",
"client_id": "web",
"response_type": "code",
"scope": "openid profile email"
"server": "https://host.docker.internal:9200",
"theme": "https://host.docker.internal:9200/themes/owncloud/theme.json",
"version": "0.1.0",
"openIdConnect": {
"metadata_url": "https://host.docker.internal:9200/.well-known/openid-configuration",
"authority": "https://host.docker.internal:9200",
"client_id": "web",
"response_type": "code",
"scope": "openid profile email"
},
"options": {
"hideSearchBar": true
},
"apps": ["files", "media-viewer", "markdown-editor", "search"],
"external_apps": [
{
"id": "settings",
"path": "https://host.docker.internal:9200/settings.js"
},
"options": {
"hideSearchBar": true
{
"id": "accounts",
"path": "https://host.docker.internal:9200/accounts.js"
},
"apps": [
"files",
"media-viewer",
"search"
],
"external_apps": [
{
"id": "settings",
"path": "https://host.docker.internal:9200/settings.js"
},
{
"id": "accounts",
"path": "https://host.docker.internal:9200/accounts.js"
},
{
"id": "draw-io",
"path": "web-app-draw-io",
"config": {
"url": "https://embed.diagrams.net",
"autosave": false,
"theme": "minimal"
}
}
]
}
{
"id": "draw-io",
"path": "web-app-draw-io",
"config": {
"url": "https://embed.diagrams.net",
"autosave": false,
"theme": "minimal"
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<oc-icon name="tune" size="medium" />
</oc-button>
<oc-button
id="files-toggle-sidebar"
v-oc-tooltip="toggleSidebarButtonLabel"
:aria-label="toggleSidebarButtonLabel"
variation="passive"
Expand Down
8 changes: 7 additions & 1 deletion packages/web-app-files/src/components/SideBar/FileInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
<oc-icon :name="highlightedFile.icon" size="large" class="file_info__icon" />
<div class="file_info__body">
<h2 tabindex="-1">
{{ highlightedFile.name }}
<oc-resource-name
:name="highlightedFile.name"
:extension="highlightedFile.extension"
:type="highlightedFile.type"
:full-path="highlightedFile.path"
:is-path-displayed="false"
/>
</h2>
<div>
<template v-if="highlightedFile.size > -1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ Other free text and markdown formatting can be used elsewhere in the document if
- [webUISharingNotifications/notificationLink.feature:18](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingNotifications/notificationLink.feature#L18)
- [webUISharingNotificationsToRoot/notificationLink.feature:17](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingNotificationsToRoot/notificationLink.feature#L17)

### [Cannot determine share source path when sharing same name file from different path in shared-with pages](https://github.com/owncloud/web/issues/5302)
- [webUISharingPublicBasic/publicLinkCreate.feature:88](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingPublicBasic/publicLinkCreate.feature#L88)

### [impossible to navigate into a folder in the trashbin](https://github.com/owncloud/web/issues/1725)
- [webUITrashbinDelete/trashbinDelete.feature:29](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUITrashbinDelete/trashbinDelete.feature#L29)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ Other free text and markdown formatting can be used elsewhere in the document if
- [webUISharingInternalUsersShareWithPage/shareWithUsers.feature:118](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingInternalUsersShareWithPage/shareWithUsers.feature#L118)
- [webUIResharing1/reshareUsers.feature:230](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIResharing1/reshareUsers.feature#L230)

### [delete pending share option is not available for sharee](https://github.com/owncloud/web/issues/5435)
- [webUIDeleteFilesFolders/deleteFilesFolders.feature:235](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIDeleteFilesFolders/deleteFilesFolders.feature#L235)

### [file_path property is not unique for a share created with same resource name i.e already present in sharee](https://github.com/owncloud/ocis/issues/2249)
- [webUIRenameFiles/renameFiles.feature:205](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIRenameFiles/renameFiles.feature#L205)

Expand Down Expand Up @@ -207,8 +204,8 @@ Other free text and markdown formatting can be used elsewhere in the document if
- [webUIPrivateLinks/accessingPrivateLinks.feature:9](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIPrivateLinks/accessingPrivateLinks.feature#L9)
- [webUIPrivateLinks/accessingPrivateLinks.feature:17](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIPrivateLinks/accessingPrivateLinks.feature#L17)
- [webUIPrivateLinks/accessingPrivateLinks.feature:25](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIPrivateLinks/accessingPrivateLinks.feature#L25)
- [webUIPrivateLinks/accessingPrivateLinks.feature:34](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIPrivateLinks/accessingPrivateLinks.feature#L34)
- [webUIPrivateLinks/accessingPrivateLinks.feature:44](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIPrivateLinks/accessingPrivateLinks.feature#L44)
- [webUIPrivateLinks/accessingPrivateLinks.feature:35](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIPrivateLinks/accessingPrivateLinks.feature#L34)
- [webUIPrivateLinks/accessingPrivateLinks.feature:45](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIPrivateLinks/accessingPrivateLinks.feature#L44)

### [various sharing settings cannot be set](https://github.com/owncloud/ocis/issues/1328)
- [webUIRestrictSharing/disableSharing.feature:16](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIRestrictSharing/disableSharing.feature#L16)
Expand Down Expand Up @@ -429,9 +426,6 @@ Other free text and markdown formatting can be used elsewhere in the document if
- [webUISharingInternalGroupsEdgeCases/shareWithGroupsEdgeCases.feature:41](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingInternalGroupsEdgeCases/shareWithGroupsEdgeCases.feature#L41)
- [webUISharingInternalGroupsEdgeCases/shareWithGroupsEdgeCases.feature:42](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingInternalGroupsEdgeCases/shareWithGroupsEdgeCases.feature#L42)

### [Cannot determine share source path when sharing same name file from different path in shared-with pages](https://github.com/owncloud/web/issues/5302)
- [webUISharingPublicBasic/publicLinkCreate.feature:88](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUISharingPublicBasic/publicLinkCreate.feature#L88)

### [impossible to navigate into a folder in the trashbin](https://github.com/owncloud/web/issues/1725)
- [webUITrashbinDelete/trashbinDelete.feature:29](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUITrashbinDelete/trashbinDelete.feature#L29)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ Background: prepare user and files
Scenario: observe different actions menu options on selecting different file types or folder
Given user "Alice" has uploaded file with content "pdf file" to "lorem.pdf"
And the user has reloaded the current page of the webUI
And the app-sidebar for file "lorem.txt" has been visible on the webUI
When the user opens the actions sidebar panel of folder "simple-folder" on the webUI
Then the app-sidebar for folder "simple-folder" should be visible on the webUI
And only the following items with default items should be visible in the actions menu on the webUI
Expand Down
21 changes: 10 additions & 11 deletions tests/acceptance/features/webUIFilesDetails/fileDetails.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Feature: User can open the details panel for any file or folder
Scenario: View different areas of the app-sidebar for a file in files page
Given user "Alice" has created file "lorem.txt"
And the user has browsed to the files page
When the user picks the row of file "lorem.txt" on the webUI
When the user opens the sidebar for file "lorem.txt" on the webUI
Then the app-sidebar should be visible
And the thumbnail should be visible in the app-sidebar
And the "details" details panel should be visible
Expand All @@ -27,7 +27,7 @@ Feature: User can open the details panel for any file or folder
Scenario: View different areas of the app-sidebar for a folder in files page
Given user "Alice" has created folder "simple-folder"
And the user has browsed to the files page
When the user picks the row of folder "simple-folder" on the webUI
When the user opens the sidebar for folder "simple-folder" on the webUI
Then the app-sidebar should be visible
And the thumbnail should be visible in the app-sidebar
And the "details" details panel should be visible
Expand All @@ -44,7 +44,7 @@ Feature: User can open the details panel for any file or folder
And the user has browsed to the files page
And user "Alice" has favorited element "lorem.txt"
And the user has browsed to the favorites page
When the user picks the row of file "lorem.txt" on the webUI
When the user opens the sidebar for file "lorem.txt" on the webUI
Then the app-sidebar should be visible
And the thumbnail should be visible in the app-sidebar
And the "details" details panel should be visible
Expand All @@ -59,7 +59,7 @@ Feature: User can open the details panel for any file or folder
And the user has browsed to the files page
And user "Alice" has favorited element "simple-folder"
And the user has browsed to the favorites page
When the user picks the row of folder "simple-folder" on the webUI
When the user opens the sidebar for folder "simple-folder" on the webUI
Then the app-sidebar should be visible
And the thumbnail should be visible in the app-sidebar
And the "details" details panel should be visible
Expand All @@ -77,7 +77,7 @@ Feature: User can open the details panel for any file or folder
And user "Alice" has created a public link with following settings
| path | simple-folder |
And the user has browsed to the shared-via-link page
When the user opens the file action menu of folder "simple-folder" using the webUI
When the user opens the actions sidebar panel of file "simple-folder" on the webUI
Then the thumbnail should be visible in the app-sidebar
When the user switches to "people" panel in details panel using the webUI
Then the "people" details panel should be visible
Expand All @@ -93,7 +93,7 @@ Feature: User can open the details panel for any file or folder
And user "Alice" has shared folder "simple-folder" with user "Brian"
When the user browses to the shared-with-others page
Then folder "simple-folder" should be listed on the webUI
When the user picks the row of folder "simple-folder" on the webUI
When the user opens the sidebar for folder "simple-folder" on the webUI
Then the app-sidebar should be visible
And the thumbnail should be visible in the app-sidebar
When the user switches to "people" panel in details panel using the webUI
Expand All @@ -110,7 +110,7 @@ Feature: User can open the details panel for any file or folder
And user "Alice" has created a new public link for resource "simple-folder"
When the user browses to the shared-with-others page
Then folder "simple-folder" should be listed on the webUI
When the user picks the row of folder "simple-folder" on the webUI
When the user opens the sidebar for folder "simple-folder" on the webUI
Then the app-sidebar should be visible
And the thumbnail should be visible in the app-sidebar
When the user switches to "people" panel in details panel using the webUI
Expand All @@ -128,7 +128,7 @@ Feature: User can open the details panel for any file or folder
And the user re-logs in as "Brian" using the webUI
When the user browses to the shared-with-me page
Then folder "simple-folder" should be listed on the webUI
When the user picks the row of folder "simple-folder" on the webUI
When the user opens the sidebar for folder "simple-folder" on the webUI
Then the app-sidebar should be visible
And the thumbnail should be visible in the app-sidebar
When the user switches to "people" panel in details panel using the webUI
Expand Down Expand Up @@ -156,7 +156,7 @@ Feature: User can open the details panel for any file or folder
When the user browses to the tags page
And the user searches for tag "simple" using the webUI
Then folder "simple-folder" should be listed on the webUI
When the user opens the file action menu of folder "simple-folder" using the webUI
When the user opens the actions sidebar panel of file "simple-folder" on the webUI
Then the thumbnail should be visible in the app-sidebar
When the user switches to "people" panel in details panel using the webUI
Then the "people" details panel should be visible
Expand All @@ -171,7 +171,7 @@ Feature: User can open the details panel for any file or folder
Scenario: the sidebar is invisible after closing
Given user "Alice" has created file "lorem.txt"
And the user has browsed to the files page
When the user picks the row of file "lorem.txt" on the webUI
When the user opens the sidebar for file "lorem.txt" on the webUI
Then the app-sidebar should be visible
When the user closes the app-sidebar using the webUI
Then the app-sidebar should be invisible
Expand All @@ -180,6 +180,5 @@ Feature: User can open the details panel for any file or folder
Scenario: the sidebar is invisible after opening the selected folder
Given user "Alice" has created file "simple-folder"
And the user has browsed to the files page
Given the app-sidebar for file "simple-folder" has been visible on the webUI
When the user opens folder "simple-folder" using the webUI
Then the app-sidebar should be invisible
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Feature: Access private link

@smokeTest @ocisSmokeTest
Scenario: Access private link before authorisation
When the user tries to navigate to the private link created by user "Alice" for file "lorem.txt"
When an anonymous user tries to navigate to the private link created by user "Alice" for file "lorem.txt"
Then the user should be redirected to the IdP login page
When user "Alice" has logged in using the webUI
Then the app-sidebar for file "lorem.txt" should be visible on the webUI
Expand All @@ -27,6 +27,7 @@ Feature: Access private link
And user "Alice" has shared file "lorem.txt" with user "Brian" with "read" permissions
And user "Brian" has logged in using the webUI
When the user navigates to the private link created by user "Alice" for file "lorem.txt"
And the private link resolved successfully
Then the app-sidebar for file "lorem.txt" should be visible on the webUI
And the "details" details panel should be visible

Expand All @@ -42,5 +43,5 @@ Feature: Access private link
"""

Scenario: Access the private link anonymously
When the user tries to navigate to the private link created by user "Alice" for file "lorem.txt"
When an anonymous user tries to navigate to the private link created by user "Alice" for file "lorem.txt"
Then the user should be redirected to the IdP login page
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ Feature: Sharing files and folders with internal groups
| grp3 |
| grp4 |
And user "Alice" has created folder "simple-folder"
And user "Alice" has created folder "simple-folder2"
And user "Alice" has created file "simple-folder/testimage.png"
When user "Alice" has logged in using the webUI
Then the following resources should not have share indicators on the webUI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Feature: Create public link shares
Then file "lorem.txt" should be listed on the webUI

@issue-5302
Scenario: share two file with same name but different paths by public link
Scenario: share two files with same name but different paths by public link
Given user "Alice" has created folder "simple-folder"
And user "Alice" has created file "simple-folder/lorem.txt"
And user "Alice" has created file "lorem.txt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Feature: Public link share management
When the user creates a new public link for folder "simple-folder" using the webUI with
| role | Editor |
And the public uses the webUI to access the last public link created by user "Alice"
And the user picks the row of file "lorem.txt" on the webUI
And the user opens the sidebar for file "lorem.txt" on the webUI
Then the following panels should be visible in the details dialog on the webUI
| name |
| versions |
Expand Down
Loading

0 comments on commit 0874659

Please sign in to comment.