diff --git a/js/tests/e2e/login.spec.ts b/js/tests/e2e/login.spec.ts index 8b32d4a94..f35f84faa 100644 --- a/js/tests/e2e/login.spec.ts +++ b/js/tests/e2e/login.spec.ts @@ -25,17 +25,17 @@ test("Login has everything we need", async ({ page }) => { await forgotPasswordLink.click(); await page.waitForURL("/password-reset/send"); - await expect(page.url()).toContain("/password-reset/send"); + expect(page.url()).toContain("/password-reset/send"); await page.goBack(); await reAskInstructionsLink.click(); await page.waitForURL("/resend-instructions"); - await expect(page.url()).toContain("/resend-instructions"); + expect(page.url()).toContain("/resend-instructions"); await page.goBack(); await registerLink.click(); await page.waitForURL("/register/user"); - await expect(page.url()).toContain("/register/user"); + expect(page.url()).toContain("/register/user"); await page.goBack(); }); @@ -68,6 +68,6 @@ test("Tries to login with valid credentials", async ({ page, context }) => { await loginButton.click(); await page.waitForURL("/"); - await expect(new URL(page.url()).pathname).toBe("/"); + expect(new URL(page.url()).pathname).toBe("/"); expect((await context.storageState()).origins[0].localStorage).toBe("toto"); }); diff --git a/js/tests/unit/specs/components/Post/__snapshots__/PostListItem.spec.ts.snap b/js/tests/unit/specs/components/Post/__snapshots__/PostListItem.spec.ts.snap index 39160cfa3..be813624e 100644 --- a/js/tests/unit/specs/components/Post/__snapshots__/PostListItem.spec.ts.snap +++ b/js/tests/unit/specs/components/Post/__snapshots__/PostListItem.spec.ts.snap @@ -30,7 +30,7 @@ exports[`PostListItem > renders post list item with tags 1`] = `

My Blog Post

Dec 2, 2020

-
A tag
+
A tag
"