commit a7a0062f54b1dd7532ee02edcce1f92f97291f1a
parent b83bb2ca57f0178adbde754383a7a795cb6a8963
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 5 Feb 2022 17:37:09 +0100
Make tests not fail
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/e2e/home.spec.ts b/e2e/home.spec.ts
@@ -8,7 +8,7 @@ test('test navigation to details', async ({ page }, testInfo) => {
page.on('console', msg => console.log(msg.text()));
// Go to http://localhost:3000/
- await page.goto('http://localhost:3000/');
+ await page.goto('http://localhost:3000/en');
// Check for the Home text
await expect(page.locator('h1')).toContainText('Home');
// Click text=Flowers@mtrnord:art.midnightthoughts.space
@@ -18,7 +18,7 @@ test('test navigation to details', async ({ page }, testInfo) => {
]);
- await expect(page).toHaveURL('http://localhost:3000/post/%24xoIMe7tUMb2NhCBZaxsZr2CVkptCVu1GaJ_eJMKbJQo');
+ await expect(page).toHaveURL('http://localhost:3000/en/post/%24xoIMe7tUMb2NhCBZaxsZr2CVkptCVu1GaJ_eJMKbJQo');
// Click svg
@@ -26,5 +26,5 @@ test('test navigation to details', async ({ page }, testInfo) => {
page.waitForNavigation(/*{ url: 'http://localhost:3000/' }*/),
page.click('#matrix-art-logo')
]);
- await expect(page).toHaveURL('http://localhost:3000/');
+ await expect(page).toHaveURL('http://localhost:3000/en');
});
\ No newline at end of file