Skip to content

Commit

Permalink
feat(core): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiia_glushkova committed Dec 17, 2024
1 parent aa851a7 commit 6d0d903
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion core/src/components/cat-checkbox/cat-checkbox.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('cat-checkbox', () => {
html: `<cat-checkbox label="Label"></cat-checkbox>`
});
expect(page.root).toEqualLightHtml(`
<cat-checkbox label="Label"></cat-checkbox>
<cat-checkbox label="Label" tabindex="0"></cat-checkbox>
`);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('cat-date-inline', () => {
html: `<cat-date-inline></cat-date-inline>`
});
expect(page.root).toEqualLightHtml(`
<cat-date-inline></cat-date-inline>
<cat-date-inline tabindex="0"></cat-date-inline>
`);
});
});
2 changes: 1 addition & 1 deletion core/src/components/cat-date/cat-date.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('cat-date', () => {
html: `<cat-date></cat-date>`
});
expect(page.root).toEqualLightHtml(`
<cat-date></cat-date>
<cat-date tabindex="0"></cat-date>
`);
});
});
2 changes: 1 addition & 1 deletion core/src/components/cat-input/cat-input.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('cat-input', () => {
html: `<cat-input label="Label"></cat-input>`
});
expect(page.root).toEqualLightHtml(`
<cat-input label="Label"></cat-input>
<cat-input label="Label" tabindex="0"></cat-input>
`);
});
});
2 changes: 1 addition & 1 deletion core/src/components/cat-pagination/cat-pagination.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('cat-pagination', () => {
html: `<cat-pagination></cat-pagination>`
});
expect(page.root).toEqualLightHtml(`
<cat-pagination></cat-pagination>
<cat-pagination tabindex="0"></cat-pagination>
`);
});
});
2 changes: 1 addition & 1 deletion core/src/components/cat-radio/cat-radio.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('cat-radio', () => {
html: `<cat-radio label="Label"></cat-radio>`
});
expect(page.root).toEqualLightHtml(`
<cat-radio label="Label"></cat-radio>
<cat-radio label="Label" tabindex="0"></cat-radio>
`);
});
});
2 changes: 1 addition & 1 deletion core/src/components/cat-select/cat-select.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('cat-select', () => {
html: `<cat-select label="Label"></cat-select>`
});
expect(page.root).toEqualLightHtml(`
<cat-select label="Label"></cat-select>
<cat-select label="Label" tabindex="0"></cat-select>
`);
});
});
2 changes: 1 addition & 1 deletion core/src/components/cat-tabs/cat-tabs.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('cat-tabs', () => {
html: `<cat-tabs></cat-tabs>`
});
expect(page.root).toEqualLightHtml(`
<cat-tabs></cat-tabs>
<cat-tabs tabindex="0"></cat-tabs>
`);
});
});
2 changes: 1 addition & 1 deletion core/src/components/cat-tag/cat-tag.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('cat-tag', () => {
html: `<cat-tag></cat-tag>`
});
expect(page.root).toEqualHtml(`
<cat-tag>
<cat-tag tabindex="0">
<mock:shadow-root>
<div class="label-container"></div>
<div class="input-wrapper">
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/cat-textarea/cat-textarea.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('cat-textarea', () => {
html: `<cat-textarea label="Label"></cat-textarea>`
});
expect(page.root).toEqualLightHtml(`
<cat-textarea label="Label"></cat-textarea>
<cat-textarea label="Label" tabindex="0"></cat-textarea>
`);
});
});
2 changes: 1 addition & 1 deletion core/src/components/cat-time/cat-time.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('cat-time', () => {
html: `<cat-time></cat-time>`
});
expect(page.root).toEqualLightHtml(`
<cat-time></cat-time>
<cat-time tabindex="0"></cat-time>
`);
});
});
2 changes: 1 addition & 1 deletion core/src/components/cat-toggle/cat-toggle.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('cat-toggle', () => {
html: `<cat-toggle label="Label"></cat-toggle>`
});
expect(page.root).toEqualLightHtml(`
<cat-toggle label="Label"></cat-toggle>
<cat-toggle label="Label" tabindex="0"></cat-toggle>
`);
});
});

0 comments on commit 6d0d903

Please sign in to comment.