Skip to content

Commit

Permalink
test(ServiceLogo): wait for images to load
Browse files Browse the repository at this point in the history
  • Loading branch information
DSil committed Mar 13, 2024
1 parent bc502c0 commit ca6c4b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/orbit-components/src/ServiceLogo/ServiceLogo.ct.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import { test, expect } from "@playwright/experimental-ct-react";
import ServiceLogoStory from "./ServiceLogo.ct-story";

test.describe("visual ServiceLogo", () => {
test("default", async ({ mount }) => {
test("default", async ({ mount, page }) => {
const component = await mount(<ServiceLogoStory />);
page.waitForRequest(/images.kiwi.com/);

await expect(component).toHaveScreenshot();
});
Expand Down

0 comments on commit ca6c4b0

Please sign in to comment.