From 322b62daa91f41d0ce9c28007b6beb19b932146a Mon Sep 17 00:00:00 2001 From: Jeff Chew Date: Mon, 4 Dec 2023 13:29:11 -0500 Subject: [PATCH] fix(carbon-web-components): multiple test fixes --- .../tests/snapshots/cds-button.md | 10 +- .../tests/snapshots/cds-code-snippet.md | 109 +++++++++---- .../tests/snapshots/cds-copy-button.md | 14 +- .../tests/snapshots/cds-link.md | 6 +- .../tests/snapshots/cds-number-input.md | 1 + .../tests/snapshots/cds-progress-step.md | 72 +++++---- .../tests/snapshots/data-table.md | 146 +++++------------- .../tests/snapshots/file-uploader.md | 7 +- .../tests/snapshots/ui-shell.md | 38 ----- .../tests/spec/checkbox_spec.ts | 2 +- .../tests/spec/code-snippet_spec.ts | 6 +- .../tests/spec/combo-box_spec.ts | 6 +- .../tests/spec/content-switcher_spec.ts | 8 +- .../tests/spec/copy-button_spec.ts | 4 +- .../tests/spec/data-table_spec.ts | 16 +- .../tests/spec/date-picker_spec.ts | 16 +- .../tests/spec/dropdown_spec.ts | 10 +- .../tests/spec/file-uploader_spec.ts | 18 +-- .../tests/spec/loading_spec.ts | 4 +- .../tests/spec/multi-select_spec.ts | 22 +-- .../tests/spec/number-input_spec.ts | 6 +- .../tests/spec/overflow-menu_spec.ts | 8 +- .../tests/spec/pagination_spec.ts | 2 +- .../tests/spec/radio-button_spec.ts | 2 +- .../tests/spec/select_spec.ts | 2 +- .../tests/spec/slider_spec.ts | 2 +- .../tests/spec/structured-list_spec.ts | 2 +- .../tests/spec/tabs_spec.ts | 2 +- .../tests/spec/tag_spec.ts | 2 +- .../tests/spec/text-input_spec.ts | 2 +- .../tests/spec/textarea_spec.ts | 2 +- .../tests/spec/tile_spec.ts | 2 +- .../tests/spec/toggle_spec.ts | 2 +- .../tests/spec/tooltip_spec.ts | 2 +- .../src/components/card-link/card-link.scss | 3 +- .../content-block-simple.scss | 3 +- .../masthead/cloud/cloud-masthead.scss | 21 +-- 37 files changed, 261 insertions(+), 319 deletions(-) diff --git a/packages/carbon-web-components/tests/snapshots/cds-button.md b/packages/carbon-web-components/tests/snapshots/cds-button.md index 3e4d8f618c6..1b1254c9657 100644 --- a/packages/carbon-web-components/tests/snapshots/cds-button.md +++ b/packages/carbon-web-components/tests/snapshots/cds-button.md @@ -6,7 +6,7 @@ ``` - ``` diff --git a/packages/carbon-web-components/tests/snapshots/cds-copy-button.md b/packages/carbon-web-components/tests/snapshots/cds-copy-button.md index 2e436f79dbe..0d58a83ad26 100644 --- a/packages/carbon-web-components/tests/snapshots/cds-copy-button.md +++ b/packages/carbon-web-components/tests/snapshots/cds-copy-button.md @@ -6,13 +6,12 @@ ``` - - - - + + ``` @@ -21,13 +20,12 @@ ``` - - - - + + ``` diff --git a/packages/carbon-web-components/tests/snapshots/cds-link.md b/packages/carbon-web-components/tests/snapshots/cds-link.md index ebd124b606e..a7b52c27f7c 100644 --- a/packages/carbon-web-components/tests/snapshots/cds-link.md +++ b/packages/carbon-web-components/tests/snapshots/cds-link.md @@ -6,7 +6,7 @@ ``` diff --git a/packages/carbon-web-components/tests/snapshots/cds-number-input.md b/packages/carbon-web-components/tests/snapshots/cds-number-input.md index 429f46fd279..423a82f6c37 100644 --- a/packages/carbon-web-components/tests/snapshots/cds-number-input.md +++ b/packages/carbon-web-components/tests/snapshots/cds-number-input.md @@ -16,6 +16,7 @@
-

- First step -

- - - - - +
+ +

+ First step +

+
+ + + + +
``` #### `Should render with various attributes` ``` - -

- First step -

-
- -

- secondary-label-text-foo -

-
- - +
+ +

+ First step +

+
+ +

+ secondary-label-text-foo +

+
+ + +
``` diff --git a/packages/carbon-web-components/tests/snapshots/data-table.md b/packages/carbon-web-components/tests/snapshots/data-table.md index ab57ea701bf..a2a2a7192a6 100644 --- a/packages/carbon-web-components/tests/snapshots/data-table.md +++ b/packages/carbon-web-components/tests/snapshots/data-table.md @@ -112,73 +112,17 @@ #### `should render with various attributes` ``` -
- + - -
- - - -``` - -## `cds-table-expand-row` - -## `Misc attributes` - -#### `should render with minimum attributes` - -``` -
- -
- - - -``` - -#### `should render with various attributes` - -``` -
- -
-
- - +
@@ -193,7 +137,7 @@ ```