[MM-39737] E2E test checking for focused input in Add Server Modal (#1846)
This commit is contained in:
@@ -161,6 +161,11 @@ describe('modals', function desc() {
|
|||||||
existing.should.be.true;
|
existing.should.be.true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should focus the first text input', async () => {
|
||||||
|
const isFocused = await newServerView.$eval('#teamNameInput', (el) => el === document.activeElement);
|
||||||
|
isFocused.should.be.true;
|
||||||
|
});
|
||||||
|
|
||||||
it('should close the window after clicking cancel', async () => {
|
it('should close the window after clicking cancel', async () => {
|
||||||
await newServerView.click('#cancelNewServerModal');
|
await newServerView.click('#cancelNewServerModal');
|
||||||
await asyncSleep(1000);
|
await asyncSleep(1000);
|
||||||
|
Reference in New Issue
Block a user