Skip to content

Commit 701898e

Browse files
fix: fix e2e tests about twitter
1 parent ee73a60 commit 701898e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pwa/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export default function Page() {
132132
Follow us
133133
</h2>
134134
<HelpButton
135-
url="https://twitter.com/ApiPlatform"
135+
url="https://x.com/ApiPlatform"
136136
title="API Platform on Twitter"
137137
>
138138
<svg

pwa/tests/Homepage.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ test.describe("Homepage", () => {
3838
page.context().waitForEvent("page"),
3939
await page.getByRole("link", { name: "API Platform on Twitter" }).click(),
4040
]);
41-
await expect(newPage).toHaveURL("https://twitter.com/ApiPlatform");
41+
await expect(newPage).toHaveURL(/^https:\/\/x\.com/);
4242
});
4343

4444
test("Go to Mastodon @read", async ({ page }) => {

0 commit comments

Comments
 (0)