From 6db45ffbfc60360f34c90326fe62b11813d17f3d Mon Sep 17 00:00:00 2001 From: MarconLP <13001502+MarconLP@users.noreply.github.com> Date: Sat, 15 Apr 2023 20:31:34 +0200 Subject: [PATCH] add check to make sure no videos exist --- tests/videos.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/videos.spec.ts b/tests/videos.spec.ts index ccd9722..bea486d 100644 --- a/tests/videos.spec.ts +++ b/tests/videos.spec.ts @@ -7,3 +7,10 @@ test("should be able to view videos", async ({ page }) => { .click(); await expect(page).toHaveURL("http://localhost:3000/videos"); }); + +test("no videos should exist", async ({ page }) => { + await page.goto("http://localhost:3000/videos"); + await expect(page.locator("div.flex-start > div > span")).toContainText( + "You do not have any recordings." + ); +});