From 8da8b89af7aa79fea8672ed655141dbcbcfe1349 Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Wed, 10 Apr 2024 18:02:08 -0500 Subject: [PATCH] test: verify actually uploaded license with assert (#12934) Prior page.GetByText did not assert it existed --- site/e2e/global.setup.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/e2e/global.setup.ts b/site/e2e/global.setup.ts index b4f92c423b..fd37b29ea5 100644 --- a/site/e2e/global.setup.ts +++ b/site/e2e/global.setup.ts @@ -30,6 +30,8 @@ test("setup deployment", async ({ page }) => { await page.getByRole("textbox").fill(constants.enterpriseLicense); await page.getByText("Upload License").click(); - await page.getByText("You have successfully added a license").isVisible(); + await expect( + page.getByText("You have successfully added a license"), + ).toBeVisible(); } });