Skip to content

Commit

Permalink
fix(search-bar): test screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
aesteves60 authored and dpellier committed Aug 4, 2023
1 parent f50b75f commit c70e3d7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ describe('e2e:osds-search-bar', () => {
[true, false].forEach((disabled) => {
[true, false].forEach((loading) => {
[undefined, [], options].forEach((options) => {
[undefined, '', 'Input value'].forEach((value) => {
[undefined, '', 'Placeholder'].forEach((placeholder) => {
it([contrasted, disabled, loading, placeholder, options, value].join(', '), async () => {
[undefined, 'Input value'].forEach((value) => {
[undefined, 'Placeholder'].forEach((placeholder) => {
it([`contrasted ${contrasted}`, `disabled ${disabled}`, `loading ${loading}`, `placeholder ${placeholder}`, `options ${options}`, `value ${value}`].join(', '), async () => {
await setup({
attributes: { contrasted, disabled, loading, placeholder, options, value },
});
await page.waitForChanges();
const results = await page.compareScreenshot('seach-bar', { fullPage: false, omitBackground: true });
const results = await page.compareScreenshot('search-bar', { fullPage: false, omitBackground: true });
expect(results).toMatchScreenshot({ allowableMismatchedRatio: 0 })
});
});
Expand Down

0 comments on commit c70e3d7

Please sign in to comment.