From cd176c2d2b2da63fe0eba2834d200bf41fd26495 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Mon, 23 Jan 2023 14:58:04 +0100 Subject: [PATCH] Update snapshots and fix other test(s) --- .../__snapshots__/OcBreadcrumb.spec.ts.snap | 12 +- .../__snapshots__/OcModal.spec.ts.snap | 26 ++-- .../OcSearchBar/OcSearchBar.spec.ts | 2 +- .../OcTile/__snapshots__/OcTile.spec.ts.snap | 6 +- .../__snapshots__/MembersPanel.spec.ts.snap | 4 +- .../__snapshots__/SpacesList.spec.ts.snap | 4 +- .../AppBar/__snapshots__/AppBar.spec.ts.snap | 26 ++-- .../CreateAndUpload.spec.ts.snap | 16 +- .../SharesNavigation.spec.ts.snap | 20 +-- .../__snapshots__/ViewOptions.spec.ts.snap | 8 +- .../__snapshots__/FileDetails.spec.ts.snap | 44 +++--- .../__snapshots__/RoleDropdown.spec.ts.snap | 140 +++++++++--------- .../__snapshots__/DetailsAndEdit.spec.ts.snap | 28 ++-- .../__snapshots__/FileShares.spec.ts.snap | 8 +- .../__snapshots__/SpaceMembers.spec.ts.snap | 6 +- .../__snapshots__/SpaceQuota.spec.ts.snap | 2 +- .../__snapshots__/Projects.spec.ts.snap | 4 +- .../ContextActionMenu.spec.ts.snap | 4 +- .../__snapshots__/SpaceDetails.spec.ts.snap | 4 +- .../__snapshots__/SidebarNav.spec.ts.snap | 16 +- .../ApplicationsMenu.spec.ts.snap | 10 +- 21 files changed, 195 insertions(+), 195 deletions(-) diff --git a/packages/design-system/src/components/OcBreadcrumb/__snapshots__/OcBreadcrumb.spec.ts.snap b/packages/design-system/src/components/OcBreadcrumb/__snapshots__/OcBreadcrumb.spec.ts.snap index b47e417a253..8a9d276fa01 100644 --- a/packages/design-system/src/components/OcBreadcrumb/__snapshots__/OcBreadcrumb.spec.ts.snap +++ b/packages/design-system/src/components/OcBreadcrumb/__snapshots__/OcBreadcrumb.spec.ts.snap @@ -12,7 +12,7 @@ exports[`OcBreadcrumb displays all items 1`] = `
  • - + Subfolder @@ -35,13 +35,13 @@ exports[`OcBreadcrumb displays all items 1`] = ` Deeper ellipsize in responsive mode - +
    1. Deep
    2. - Subfolder + Subfolder
    3. First folder @@ -64,7 +64,7 @@ exports[`OcBreadcrumb sets correct variation 1`] = `
    4. - + Subfolder @@ -87,13 +87,13 @@ exports[`OcBreadcrumb sets correct variation 1`] = ` Deeper ellipsize in responsive mode - +
      1. Deep
      2. - Subfolder + Subfolder
      3. First folder diff --git a/packages/design-system/src/components/OcModal/__snapshots__/OcModal.spec.ts.snap b/packages/design-system/src/components/OcModal/__snapshots__/OcModal.spec.ts.snap index bcf34b78b24..cbe2e0bfc18 100644 --- a/packages/design-system/src/components/OcModal/__snapshots__/OcModal.spec.ts.snap +++ b/packages/design-system/src/components/OcModal/__snapshots__/OcModal.spec.ts.snap @@ -2,20 +2,20 @@ exports[`OcModal displays input 1`] = `
        - + @@ -25,7 +25,7 @@ exports[`OcModal displays input 1`] = ` exports[`OcModal hides icon if not specified 1`] = `
        - + @@ -48,7 +48,7 @@ exports[`OcModal hides icon if not specified 1`] = ` exports[`OcModal matches snapshot 1`] = `
        - + @@ -71,7 +71,7 @@ exports[`OcModal matches snapshot 1`] = ` exports[`OcModal overrides props message with slot 1`] = `
        - + diff --git a/packages/design-system/src/components/OcSearchBar/OcSearchBar.spec.ts b/packages/design-system/src/components/OcSearchBar/OcSearchBar.spec.ts index ebbcbe0bd7d..78f7a8876c7 100644 --- a/packages/design-system/src/components/OcSearchBar/OcSearchBar.spec.ts +++ b/packages/design-system/src/components/OcSearchBar/OcSearchBar.spec.ts @@ -93,7 +93,7 @@ describe('OcSearchBar', () => { }) it('should enable search button', async () => { await wrapper.find(selectors.searchInput).setValue('a') // search query should also be not null - expect(wrapper.find(selectors.searchButton).attributes('disabled')).toBe(undefined) + expect(wrapper.find(selectors.searchButton).attributes('disabled')).toBe('false') }) }) }) diff --git a/packages/design-system/src/components/OcTile/__snapshots__/OcTile.spec.ts.snap b/packages/design-system/src/components/OcTile/__snapshots__/OcTile.spec.ts.snap index 40c09a19dbc..1ae481ae336 100644 --- a/packages/design-system/src/components/OcTile/__snapshots__/OcTile.spec.ts.snap +++ b/packages/design-system/src/components/OcTile/__snapshots__/OcTile.spec.ts.snap @@ -10,7 +10,7 @@ exports[`OcTile component renders default space correctly 1`] = `
        - +
        @@ -24,7 +24,7 @@ exports[`OcTile component renders default space correctly 1`] = ` exports[`OcTile component renders disabled space correctly 1`] = `
        - + Disabled @@ -32,7 +32,7 @@ exports[`OcTile component renders disabled space correctly 1`] = `
        - +
        diff --git a/packages/web-app-admin-settings/tests/unit/components/Spaces/SideBar/__snapshots__/MembersPanel.spec.ts.snap b/packages/web-app-admin-settings/tests/unit/components/Spaces/SideBar/__snapshots__/MembersPanel.spec.ts.snap index 28f5b605ed4..f013093a115 100644 --- a/packages/web-app-admin-settings/tests/unit/components/Spaces/SideBar/__snapshots__/MembersPanel.spec.ts.snap +++ b/packages/web-app-admin-settings/tests/unit/components/Spaces/SideBar/__snapshots__/MembersPanel.spec.ts.snap @@ -2,7 +2,7 @@ exports[`MembersPanel should display an empty result if no matching members found 1`] = `
        - +

        No members found

        @@ -16,7 +16,7 @@ exports[`MembersPanel should display an empty result if no matching members foun exports[`MembersPanel should render all members accordingly to their role assignments 1`] = `
        - +
        diff --git a/packages/web-app-admin-settings/tests/unit/components/Spaces/__snapshots__/SpacesList.spec.ts.snap b/packages/web-app-admin-settings/tests/unit/components/Spaces/__snapshots__/SpacesList.spec.ts.snap index 47d41d71f1c..ba57361c916 100644 --- a/packages/web-app-admin-settings/tests/unit/components/Spaces/__snapshots__/SpacesList.spec.ts.snap +++ b/packages/web-app-admin-settings/tests/unit/components/Spaces/__snapshots__/SpacesList.spec.ts.snap @@ -15,7 +15,7 @@ exports[`SpacesList should render all spaces in a table 1`] = ` - + @@ -99,7 +99,7 @@ exports[`SpacesList should render all spaces in a table 1`] = ` - + diff --git a/packages/web-app-files/tests/unit/components/AppBar/__snapshots__/AppBar.spec.ts.snap b/packages/web-app-files/tests/unit/components/AppBar/__snapshots__/AppBar.spec.ts.snap index 6bce2f944bf..48ec8d16464 100644 --- a/packages/web-app-files/tests/unit/components/AppBar/__snapshots__/AppBar.spec.ts.snap +++ b/packages/web-app-files/tests/unit/components/AppBar/__snapshots__/AppBar.spec.ts.snap @@ -10,7 +10,7 @@ exports[`AppBar component renders breadcrumbs if given, by default without bread
        - +
        @@ -32,7 +32,7 @@ exports[`AppBar component renders breadcrumbs if given, with breadcrumbsContextA
        - +
        @@ -54,7 +54,7 @@ exports[`AppBar component renders breadcrumbs if given, with content in the cont
        - +
        @@ -76,13 +76,13 @@ exports[`AppBar component renders bulkActions if enabled 1`] = `
        - +
        - +
        @@ -99,13 +99,13 @@ exports[`AppBar component renders bulkActions not if 1 file selected 1`] = `
        - +
        - +
        @@ -122,7 +122,7 @@ exports[`AppBar component renders by default no breadcrumbs, no bulkactions, no
        - +
        @@ -144,7 +144,7 @@ exports[`AppBar component renders if given, with content in the actions slot 1`]
        - +
        @@ -167,7 +167,7 @@ exports[`AppBar component renders if given, with content in the content slot 1`]
        - +
        @@ -190,7 +190,7 @@ exports[`AppBar component renders sharesNavigation if enabled 1`] = `
        - +
        @@ -231,7 +231,7 @@ exports[`AppBar component renders viewoptions and sidebartoggle only sidebartogg
        - +
        @@ -275,7 +275,7 @@ exports[`AppBar component renders viewoptions and sidebartoggle passes viewModes
        - +
        diff --git a/packages/web-app-files/tests/unit/components/AppBar/__snapshots__/CreateAndUpload.spec.ts.snap b/packages/web-app-files/tests/unit/components/AppBar/__snapshots__/CreateAndUpload.spec.ts.snap index 15675bfea46..187f7bb8581 100644 --- a/packages/web-app-files/tests/unit/components/AppBar/__snapshots__/CreateAndUpload.spec.ts.snap +++ b/packages/web-app-files/tests/unit/components/AppBar/__snapshots__/CreateAndUpload.spec.ts.snap @@ -16,10 +16,10 @@ exports[`CreateAndUpload component action buttons should show and be enabled if Upload - - + +
      4. - +
      5. @@ -39,8 +39,8 @@ exports[`CreateAndUpload component file handlers should show additional handlers New - - + +
      6. - - + +
      7. - +
      8. diff --git a/packages/web-app-files/tests/unit/components/AppBar/__snapshots__/SharesNavigation.spec.ts.snap b/packages/web-app-files/tests/unit/components/AppBar/__snapshots__/SharesNavigation.spec.ts.snap index 3685175e08e..cd7ded8c89d 100644 --- a/packages/web-app-files/tests/unit/components/AppBar/__snapshots__/SharesNavigation.spec.ts.snap +++ b/packages/web-app-files/tests/unit/components/AppBar/__snapshots__/SharesNavigation.spec.ts.snap @@ -2,35 +2,35 @@ exports[`SharesNavigation component renders a shares navigation for both mobile and a desktop viewports 1`] = `