From fad0894e6d827f1407d8c482aeb7dead5a360ed9 Mon Sep 17 00:00:00 2001 From: Darcy Ye Date: Tue, 20 Jun 2023 15:49:17 +0800 Subject: [PATCH] chore(test): add cloud console UI integration tests --- .../integration-tests/src/tests/ui-cloud/smoke.test.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/integration-tests/src/tests/ui-cloud/smoke.test.ts b/packages/integration-tests/src/tests/ui-cloud/smoke.test.ts index 934f1894d..f29870f34 100644 --- a/packages/integration-tests/src/tests/ui-cloud/smoke.test.ts +++ b/packages/integration-tests/src/tests/ui-cloud/smoke.test.ts @@ -235,5 +235,11 @@ describe('smoke testing for cloud', () => { await expect(pageTitle).toMatchElement('div[class$=title]', { text: 'Something to explore to help you succeed', }); - }); + + const createTenantModalTitleSelector = + 'div[class$=ReactModalPortal] div[class$=iconAndTitle] > div[class*=container][class$=large]:has(div[class*=title][class$=titleEllipsis])'; + await expect( + page.waitForSelector(createTenantModalTitleSelector, { timeout: 3000 }) + ).rejects.toThrow(); // Throws error if selector is not found. + }, 20_000); });