[MM-39737] E2E test checking for focused input in Add Server Modal (#1846)

This commit is contained in:
Devin Binnie
2021-11-03 09:10:26 -04:00
committed by GitHub
parent 3e36773e3a
commit ff8a04245e

View File

@@ -161,6 +161,11 @@ describe('modals', function desc() {
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 () => {
await newServerView.click('#cancelNewServerModal');
await asyncSleep(1000);