0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

test: improve ui test stability and remove unnecessary code (#3945)

This commit is contained in:
Charles Zhao 2023-06-01 17:35:29 +08:00 committed by GitHub
parent 19ef8c1e35
commit f89af550de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 2 deletions

View file

@ -194,7 +194,6 @@ describe('user management', () => {
await page.waitForSelector('form');
// Conflicted email
await expect(page).toFillForm('form', { primaryEmail: 'jdoe@gmail.com' });
await page.screenshot({ path: 'user-conflict-email.png' });
await expect(page).toClick('form div[class$=actionBar] button:nth-of-type(2)');
await expect(page).toMatchElement('div[class$=error] div[class$=message]', {
text: 'This email is associated with an existing account.',

View file

@ -11,6 +11,7 @@ const createWebhookFromWebhooksPage = async () => {
await expect(page).toFill('input[name=name]', 'hook_name');
await expect(page).toFill('input[name=url]', 'https://example.com/webhook');
await expect(page).toClick('button[type=submit]');
await page.waitForSelector('div[class$=header] div[class$=metadata] div[class$=title]');
};
describe('webhooks', () => {
@ -38,7 +39,6 @@ describe('webhooks', () => {
await createWebhookFromWebhooksPage();
// Go to webhook details page
await page.waitForSelector('div[class$=header] div[class$=metadata] div[class$=title]');
await expect(page).toMatchElement('div[class$=main] div[class$=metadata] div[class$=title]', {
text: 'hook_name',
});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB