Skip to content

Commit 56a69d5

Browse files
committed
refactor: enforce screenshot regeneration
1 parent 10a7c23 commit 56a69d5

File tree

21 files changed

+21
-21
lines changed

21 files changed

+21
-21
lines changed

packages/components/_templates/mitosis/new/component/spec.ejs.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const comp: any = <DB<%= h.changeCase.pascal(name) %>>Test</DB<%= h.changeCase.p
1313
const testComponent = () =>{
1414
test('should contain text', async ({ mount }) => {
1515
const component = await mount(comp);
16-
await expect(component).toContainText('Test');
16+
await expect(component).toContainText('1Test');
1717
});
1818

1919
test('should match screenshot', async ({ mount }) => {

packages/components/src/components/accordion-item/accordion-item.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const comp: any = <DBAccordionItem headlinePlain="Test">Test</DBAccordionItem>;
1010
const testComponent = () => {
1111
test('should contain text', async ({ mount }) => {
1212
const component = await mount(comp);
13-
await expect(component).toContainText('Test');
13+
await expect(component).toContainText('1Test');
1414
});
1515

1616
test('should match screenshot', async ({ mount }) => {

packages/components/src/components/accordion/accordion.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const actionAccordion: any = (
4848
const testComponent = () => {
4949
test('should contain text', async ({ mount }) => {
5050
const component = await mount(comp);
51-
await expect(component).toContainText('Test');
51+
await expect(component).toContainText('1Test');
5252
});
5353

5454
test('should match screenshot', async ({ mount }) => {

packages/components/src/components/badge/badge.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const comp: any = <DBBadge>Test</DBBadge>;
1010
const testComponent = () => {
1111
test('should contain text', async ({ mount }) => {
1212
const component = await mount(comp);
13-
await expect(component).toContainText('Test');
13+
await expect(component).toContainText('1Test');
1414
});
1515

1616
test('should match screenshot', async ({ mount }) => {

packages/components/src/components/brand/brand.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const comp: any = <DBBrand>Test</DBBrand>;
99
const testBrand = () => {
1010
test(`should contain text`, async ({ mount }) => {
1111
const component = await mount(comp);
12-
await expect(component).toContainText('Test');
12+
await expect(component).toContainText('1Test');
1313
});
1414

1515
test(`should match screenshot`, async ({ mount }) => {

packages/components/src/components/button/button.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const testButton = () => {
2626
mount
2727
}) => {
2828
const component = await mount(variantButton);
29-
await expect(component).toContainText('Test');
29+
await expect(component).toContainText('1Test');
3030
});
3131

3232
test(`should match screenshot for variant ${variant}`, async ({

packages/components/src/components/card/card.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const defaultComp: any = <DBCard>Test</DBCard>;
1010
const testDefaultCard = () => {
1111
test('should contain text', async ({ mount }) => {
1212
const component = await mount(defaultComp);
13-
await expect(component).toContainText('Test');
13+
await expect(component).toContainText('1Test');
1414
});
1515

1616
test('should match screenshot', async ({ mount }) => {

packages/components/src/components/checkbox/checkbox.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const comp: any = <DBCheckbox label="Test" />;
1010
const testComponent = () => {
1111
test('should contain text', async ({ mount }) => {
1212
const component = await mount(comp);
13-
await expect(component).toContainText('Test');
13+
await expect(component).toContainText('1Test');
1414
});
1515

1616
test('should match screenshot', async ({ mount }) => {

packages/components/src/components/custom-select/custom-select.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const selectAllSelect: any = (
4242
const testComponent = () => {
4343
test('should contain text', async ({ mount }) => {
4444
const component = await mount(comp);
45-
await expect(component).toContainText('Test');
45+
await expect(component).toContainText('1Test');
4646
});
4747

4848
test('should match screenshot', async ({ mount }) => {

packages/components/src/components/drawer/drawer.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const testComponent = (viewport) => {
1212
mount
1313
}) => {
1414
const component = await mount(comp);
15-
await expect(component).toContainText('Test');
15+
await expect(component).toContainText('1Test');
1616
});
1717

1818
test.fixme(

0 commit comments

Comments
 (0)