Skip to content

Commit

Permalink
chore(gh): clean up ci-check workflow (#10370)
Browse files Browse the repository at this point in the history
* chore(gh): clean up ci-check workflow

* chore(snapshot): udpate cwc snapshots

---------

Co-authored-by: Anna Wen <[email protected]>
  • Loading branch information
kennylam and annawen1 authored May 2, 2023
1 parent bd5e837 commit e58d8d5
Show file tree
Hide file tree
Showing 51 changed files with 748 additions and 411 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
89 changes: 89 additions & 0 deletions packages/carbon-web-components/tests/snapshots/cds-button.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# `cds-button`

## `Misc attributes`

#### `should render with minimum attributes for <button>`

```
<button
class="cds--btn cds--btn--lg cds--btn--primary"
id="button"
part="button"
type="button"
>
<slot>
</slot>
<slot name="icon">
</slot>
</button>
```

#### `should render with various attributes for <button>`

```
<button
class="cds--btn cds--btn--lg cds--btn--primary"
id="button"
part="button"
type="button"
>
<slot>
</slot>
<slot name="icon">
</slot>
</button>
```

#### `should render with minimum attributes for <a>`

```
<button
class="cds--btn cds--btn--lg cds--btn--primary"
id="button"
part="button"
type="button"
>
<slot>
</slot>
<slot name="icon">
</slot>
</button>
```

#### `should render with various attributes for <a>`

```
<button
class="cds--btn cds--btn--lg cds--btn--primary"
id="button"
part="button"
type="button"
>
<slot>
</slot>
<slot name="icon">
</slot>
</button>
```

#### `should render disabled state for <a>`

```
<button
class="cds--btn cds--btn--lg cds--btn--primary"
id="button"
part="button"
type="button"
>
<slot>
</slot>
<slot name="icon">
</slot>
</button>
```

11 changes: 7 additions & 4 deletions packages/carbon-web-components/tests/snapshots/cds-checkbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
```
<input
aria-checked="false"
aria-readonly="false"
class="cds--checkbox"
id="checkbox"
part="input"
Expand All @@ -16,9 +17,11 @@
class="cds--checkbox-label"
for="checkbox"
part="label"
title=""
>
<span class="cds--checkbox-label-text">
<slot>
Checkbox label
</slot>
</span>
</label>
Expand All @@ -30,20 +33,20 @@
```
<input
aria-checked="mixed"
aria-readonly="false"
class="cds--checkbox"
disabled=""
id="checkbox"
name="name-foo"
part="input"
type="checkbox"
value="value-foo"
>
<label
class="cds--checkbox-label cds--visually-hidden"
class="cds--checkbox-label"
for="checkbox"
part="label"
title=""
>
<span class="cds--checkbox-label-text">
<span class="cds--checkbox-label-text cds--visually-hidden">
<slot>
label-text-foo
</slot>
Expand Down
100 changes: 18 additions & 82 deletions packages/carbon-web-components/tests/snapshots/cds-code-snippet.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,9 @@
</pre>
</code>
</div>
<button
class="cds--snippet-button"
title="Copy to clipboard"
type="button"
>
<slot>
</slot>
<div
class="cds--assistive-text cds--btn--copy__feedback"
data-feedback="Copied!"
>
</div>
</button>
<cds-copy-button feedback="Copied!">
Copy to clipboard
</cds-copy-button>
```

Expand All @@ -50,40 +40,18 @@
</pre>
</code>
</div>
<button
class="cds--snippet-button"
title="Copy to clipboard"
type="button"
>
<slot>
</slot>
<div
class="cds--assistive-text cds--btn--copy__feedback"
data-feedback="Copied!"
>
</div>
</button>
<cds-copy-button feedback="Copied!">
Copy to clipboard
</cds-copy-button>
```

#### `Should render with minimum attributes for inline mode`

```
<button
class="cds--snippet cds--snippet--inline"
title="Copy to clipboard"
type="button"
>
<code aria-label="code-snippet">
<slot>
</slot>
</code>
<div
class="cds--assistive-text cds--btn--copy__feedback"
data-feedback="Copied!"
>
</div>
</button>
<cds-copy-button feedback="Copied!">
Copy to clipboard
</cds-copy-button>
```

Expand All @@ -103,19 +71,9 @@
</pre>
</code>
</div>
<button
class="cds--snippet-button"
title="copy-button-assistive-text-foo"
type="button"
>
<slot>
</slot>
<div
class="cds--assistive-text cds--btn--copy__feedback"
data-feedback="copy-button-feedback-text-foo"
>
</div>
</button>
<cds-copy-button feedback="copy-button-feedback-text-foo">
copy-button-assistive-text-foo
</cds-copy-button>
```

Expand All @@ -135,40 +93,18 @@
</pre>
</code>
</div>
<button
class="cds--snippet-button"
title="copy-button-assistive-text-foo"
type="button"
>
<slot>
</slot>
<div
class="cds--assistive-text cds--btn--copy__feedback"
data-feedback="copy-button-feedback-text-foo"
>
</div>
</button>
<cds-copy-button feedback="copy-button-feedback-text-foo">
copy-button-assistive-text-foo
</cds-copy-button>
```

#### `Should render with various attributes for inline mode`

```
<button
class="cds--snippet cds--snippet--inline"
title="copy-button-assistive-text-foo"
type="button"
>
<code aria-label="code-assistive-text-foo">
<slot>
</slot>
</code>
<div
class="cds--assistive-text cds--btn--copy__feedback"
data-feedback="copy-button-feedback-text-foo"
>
</div>
</button>
<cds-copy-button feedback="copy-button-feedback-text-foo">
copy-button-assistive-text-foo
</cds-copy-button>
```

Expand Down
40 changes: 16 additions & 24 deletions packages/carbon-web-components/tests/snapshots/cds-copy-button.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,30 @@
#### `Should render with minimum attributes`

```
<button
class="cds--copy-btn"
title="Copy to clipboard"
type="button"
<cds-copy
feedback="Copied!"
feedback-timeout="2000"
>
<slot>
</slot>
<div
class="cds--assistive-text cds--btn--copy__feedback"
data-feedback="Copied!"
>
</div>
</button>
<span slot="tooltip-content">
<slot>
</slot>
</span>
</cds-copy>
```

#### `Should render with various attributes`

```
<button
class="cds--copy-btn"
title="button-assistive-text-foo"
type="button"
<cds-copy
feedback="feedback-text-foo"
feedback-timeout="16"
>
<slot>
</slot>
<div
class="cds--assistive-text cds--btn--copy__feedback"
data-feedback="feedback-text-foo"
>
</div>
</button>
<span slot="tooltip-content">
<slot>
</slot>
</span>
</cds-copy>
```

Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@
</div>
</div>
<button
aria-label="close-button-label-foo"
class="cds--inline-notification__close-button"
title="close-button-label-foo"
type="button"
>
</button>
Expand Down
Loading

0 comments on commit e58d8d5

Please sign in to comment.