Skip to content

Commit

Permalink
fix(pie-assistive-text): DSW-1969 updated visual test to fix promise bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaNg2332 committed Jul 15, 2024
1 parent df0344f commit c06e8a0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ test.beforeEach(async ({ mount }, testInfo) => {
});

test('should render all prop variations', async ({ page, mount }) => {
componentVariants.forEach(async (variant) => {
for (const variant of componentVariants) {
for (const combo of componentPropsMatrixByVariant[variant]) {
const testComponent: WebComponentTestInput = createTestWebComponent(combo, renderTestPieAssistiveText);

Expand All @@ -53,13 +53,13 @@ test('should render all prop variations', async ({ page, mount }) => {
},
);
}
});
}

await percySnapshot(page, 'PIE Assistive Text - Variants', percyWidths);
});

test('should render all prop variations with RTL set', async ({ page, mount }) => {
componentVariants.forEach(async (variant) => {
for (const variant of componentVariants) {
for (const combo of componentPropsMatrixByVariant[variant]) {
const testComponent: WebComponentTestInput = createTestWebComponent(combo, renderTestPieAssistiveText);

Expand All @@ -77,7 +77,7 @@ test('should render all prop variations with RTL set', async ({ page, mount }) =
},
);
}
});
}

await percySnapshot(page, 'PIE Assistive Text - Variants with RTL', percyWidths);
});

0 comments on commit c06e8a0

Please sign in to comment.