Skip to content

Commit

Permalink
Assert that images are in expected array
Browse files Browse the repository at this point in the history
  • Loading branch information
jeawhanlee committed Nov 19, 2024
1 parent afd8450 commit 23b1e17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/support/steps/ll-css-bg-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

0 comments on commit 23b1e17

Please sign in to comment.