0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore(test): add cloud console UI integration tests

This commit is contained in:
Darcy Ye 2023-06-20 15:49:17 +08:00
parent c1ae872f48
commit fad0894e6d
No known key found for this signature in database
GPG key ID: B46F4C07EDEFC610

View file

@ -235,5 +235,11 @@ describe('smoke testing for cloud', () => {
await expect(pageTitle).toMatchElement('div[class$=title]', { await expect(pageTitle).toMatchElement('div[class$=title]', {
text: 'Something to explore to help you succeed', 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);
}); });