commit f830a917479ddbdf09f94fd7dc5530f10737e9e7
parent 1370c95646c57c3bad3413b6704e011aa06a196a
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 1 Jan 2022 18:06:28 +0100
Also test navigating back
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/e2e/home.spec.ts b/e2e/home.spec.ts
@@ -16,4 +16,8 @@ test('test navigation to details', async ({ page }) => {
page.waitForNavigation(/*{ url: 'http://localhost:3000/post/%24ugLG5srr5AyYCIhL1CnD6KikH8QYsDVMUHQ9jQRn990' }*/),
page.click('text=Flowers@mtrnord:art.midnightthoughts.space')
]);
+
+ await page.locator('a:text("Matrix Art")').waitFor();
+ await page.click('a:text("Matrix Art")');
+ await expect(page).toHaveURL('http://localhost:3000/');
});
\ No newline at end of file