From 7f26d053a75d9e46b44bdfef7ff5d4242bdc5b86 Mon Sep 17 00:00:00 2001 From: "sagargurung1001@gmail.com" Date: Tue, 2 Aug 2022 10:11:18 +0545 Subject: [PATCH] yarn test:unit -u --- .../__snapshots__/FileInfo.spec.js.snap | 29 ------------------- ...-failures-with-oc10-server-oauth2-login.md | 10 +++---- ...-failures-with-ocis-server-ocis-storage.md | 14 ++++----- .../webUIFilesDetails/fileDetails.feature | 6 ++++ .../FilesPageElement/appSideBar.js | 2 +- 5 files changed, 19 insertions(+), 42 deletions(-) delete mode 100644 packages/web-app-files/tests/unit/components/SideBar/__snapshots__/FileInfo.spec.js.snap diff --git a/packages/web-app-files/tests/unit/components/SideBar/__snapshots__/FileInfo.spec.js.snap b/packages/web-app-files/tests/unit/components/SideBar/__snapshots__/FileInfo.spec.js.snap deleted file mode 100644 index 7445fa1e6d1..00000000000 --- a/packages/web-app-files/tests/unit/components/SideBar/__snapshots__/FileInfo.spec.js.snap +++ /dev/null @@ -1,29 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`FileInfo shows deletion date info 1`] = ` -
- -
-

- -

-

- deleted RELATIVE_TIME -

-
- -
-`; - -exports[`FileInfo shows modification date info 1`] = ` -
- -
-

- -

-

740 B, modified RELATIVE_TIME

-
- -
-`; diff --git a/tests/acceptance/expected-failures-with-oc10-server-oauth2-login.md b/tests/acceptance/expected-failures-with-oc10-server-oauth2-login.md index 1e825478f02..9cbb276e9cd 100644 --- a/tests/acceptance/expected-failures-with-oc10-server-oauth2-login.md +++ b/tests/acceptance/expected-failures-with-oc10-server-oauth2-login.md @@ -18,11 +18,11 @@ Other free text and markdown formatting can be used elsewhere in the document if - [webUIComments/comments.feature:40](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIComments/comments.feature#L40) - [webUIComments/comments.feature:41](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIComments/comments.feature#L41) - [webUIComments/comments.feature:42](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIComments/comments.feature#L42) -- [webUIFilesDetails/fileDetails.feature:84](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L84) -- [webUIFilesDetails/fileDetails.feature:100](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L100) -- [webUIFilesDetails/fileDetails.feature:117](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L117) -- [webUIFilesDetails/fileDetails.feature:134](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L134) -- [webUIFilesDetails/fileDetails.feature:163](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L163) +- [webUIFilesDetails/fileDetails.feature:90](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L90) +- [webUIFilesDetails/fileDetails.feature:106](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L106) +- [webUIFilesDetails/fileDetails.feature:123](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L123) +- [webUIFilesDetails/fileDetails.feature:140](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L140) +- [webUIFilesDetails/fileDetails.feature:169](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L169) ### [Tags page not implemented yet](https://github.com/owncloud/web/issues/5017) - [webUIDeleteFilesFolders/deleteFilesFolders.feature:135](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIDeleteFilesFolders/deleteFilesFolders.feature#L135) diff --git a/tests/acceptance/expected-failures-with-ocis-server-ocis-storage.md b/tests/acceptance/expected-failures-with-ocis-server-ocis-storage.md index 909dd11d4bf..3f10abba851 100644 --- a/tests/acceptance/expected-failures-with-ocis-server-ocis-storage.md +++ b/tests/acceptance/expected-failures-with-ocis-server-ocis-storage.md @@ -152,11 +152,11 @@ Other free text and markdown formatting can be used elsewhere in the document if - [webUIComments/comments.feature:40](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIComments/comments.feature#L40) - [webUIComments/comments.feature:41](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIComments/comments.feature#L41) - [webUIComments/comments.feature:42](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIComments/comments.feature#L42) -- [webUIFilesDetails/fileDetails.feature:84](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L84) -- [webUIFilesDetails/fileDetails.feature:100](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L100) -- [webUIFilesDetails/fileDetails.feature:117](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L117) -- [webUIFilesDetails/fileDetails.feature:134](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L134) -- [webUIFilesDetails/fileDetails.feature:163](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L163) +- [webUIFilesDetails/fileDetails.feature:90](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L90) +- [webUIFilesDetails/fileDetails.feature:106](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L106) +- [webUIFilesDetails/fileDetails.feature:123](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L123) +- [webUIFilesDetails/fileDetails.feature:140](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L140) +- [webUIFilesDetails/fileDetails.feature:169](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L169) ### [Deletion of a recursive folder from trashbin is not possible](https://github.com/owncloud/product/issues/188) - [webUITrashbinDelete/trashbinDelete.feature:85](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUITrashbinDelete/trashbinDelete.feature#L85) @@ -299,8 +299,8 @@ Other free text and markdown formatting can be used elsewhere in the document if - [webUIUpload/upload.feature:42](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIUpload/upload.feature#L42) ### [Favorites deactivated in ocis temporarily](https://github.com/owncloud/ocis/issues/1228) -- [webUIFilesDetails/fileDetails.feature:47](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L47) -- [webUIFilesDetails/fileDetails.feature:67](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L67) +- [webUIFilesDetails/fileDetails.feature:50](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L50) +- [webUIFilesDetails/fileDetails.feature:70](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIFilesDetails/fileDetails.feature#L70) - [webUIRenameFiles/renameFiles.feature:257](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIRenameFiles/renameFiles.feature#L257) ### [Copy/move not possible from and into shares in oCIS](https://github.com/owncloud/web/issues/6892) diff --git a/tests/acceptance/features/webUIFilesDetails/fileDetails.feature b/tests/acceptance/features/webUIFilesDetails/fileDetails.feature index ebc13d9f9f7..bd9f23f5317 100644 --- a/tests/acceptance/features/webUIFilesDetails/fileDetails.feature +++ b/tests/acceptance/features/webUIFilesDetails/fileDetails.feature @@ -42,6 +42,9 @@ Feature: User can open the details panel for any file or folder When the user switches to "people" panel in details panel using the webUI Then the "people" details panel should be visible And the "small" preview of thumbnail should be visible in the "people" panel + When the user switches to "links" panel in details panel using the webUI + Then the "links" details panel should be visible + And the "small" preview of thumbnail should be visible in the "links" panel @files_versions-app-required @ocis-reva-issue-39 Scenario: View different areas of the app-sidebar for a file in favorites page @@ -79,6 +82,9 @@ Feature: User can open the details panel for any file or folder When the user switches to "people" panel in details panel using the webUI Then the "people" details panel should be visible And the "small" preview of thumbnail should be visible in the "people" panel + When the user switches to "links" panel in details panel using the webUI + Then the "links" details panel should be visible + And the "small" preview of thumbnail should be visible in the "links" panel @issue-1158 @comments-app-required @public_link_share-feature-required Scenario: user shares a file through public link and then the details dialog should work in a Shared by link page diff --git a/tests/acceptance/pageObjects/FilesPageElement/appSideBar.js b/tests/acceptance/pageObjects/FilesPageElement/appSideBar.js index e80a5ad9a91..13b1e08dd01 100644 --- a/tests/acceptance/pageObjects/FilesPageElement/appSideBar.js +++ b/tests/acceptance/pageObjects/FilesPageElement/appSideBar.js @@ -12,7 +12,7 @@ module.exports = { '@fileInfoIconBigPreview' ) } else { - const panelName = item === 'people' ? 'sharing' : item + const panelName = item === 'people' || item === 'links' ? 'sharing' : item return this.waitForElementVisible('@sidebar').waitForElementVisible( util.format(this.elements.fileInfoIconSmallPreview.selector, panelName) )