mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 02:11:57 +00:00
Improve login test
This commit is contained in:
parent
32219bdf21
commit
d6e4b584f1
|
@ -115,9 +115,11 @@ test.describe('Login', () => {
|
|||
await expect(loginButton).toContainText('Submit');
|
||||
await expect(page.getByText('Name and Password are required.')).not.toBeVisible();
|
||||
await expect(page.getByText('Connected to bot, however Login failed,')).not.toBeVisible();
|
||||
await expect(page.getByText('Invalid Password')).not.toBeVisible();
|
||||
|
||||
await Promise.all([loginButton.click(), page.waitForResponse('**/api/v1/token/login')]);
|
||||
await expect(page.getByText('Name and Password are required.')).toBeVisible();
|
||||
await expect(page.getByText('Invalid Password')).toBeVisible();
|
||||
await expect(page.getByText('Connected to bot, however Login failed,')).toBeVisible();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user