add check to make sure no videos exist
This commit is contained in:
parent
50d5b139d9
commit
6db45ffbfc
1 changed files with 7 additions and 0 deletions
|
|
@ -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."
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue