diff --git a/src/support/steps/ll-css-bg-image.ts b/src/support/steps/ll-css-bg-image.ts index 44a08ec..c4aefc9 100644 --- a/src/support/steps/ll-css-bg-image.ts +++ b/src/support/steps/ll-css-bg-image.ts @@ -179,6 +179,5 @@ Then('Check {string} input for background images', async function (this: ICustom await this.page.locator('input[name="lastName"]').nth(1).fill('Random text') await this.utils.scrollDownBottomOfAPage(); - - expect(images).toEqual(LL_BACKGROUND_IMAGES[page].lazyLoadedImages) + expect(images.every(image => LL_BACKGROUND_IMAGES[page].lazyLoadedImages.includes(image))).toBeTruthy(); }); \ No newline at end of file