Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Replace craco with vite #3544

Merged
merged 13 commits into from
Aug 26, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe("A team with a subdomain has an online, published service.", () => {

user.click(copyButton);

expect(await screen.findByText("copied")).toBeVisible();
expect((await screen.findAllByText("copied"))[0]).toBeVisible();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI was throwing this error -
image

This looks like it was catching the tooltip as well as the actual text.

image

expect(navigator.clipboard.writeText).toBeCalledWith(
`https://${teamDomain}/${flowSlug}`,
);
Expand Down Expand Up @@ -232,7 +232,7 @@ describe("A team without a subdomain has an online, published service.", () => {

user.click(copyButton);

expect(await screen.findByText("copied")).toBeVisible();
expect((await screen.findAllByText("copied"))[0]).toBeVisible();
expect(navigator.clipboard.writeText).toBeCalledWith(publishedUrl);
});
});
Expand Down
Loading