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:
parent
c1ae872f48
commit
fad0894e6d
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue