From ff8a04245e1e40f0710c029dd7cf337e022facce Mon Sep 17 00:00:00 2001 From: Devin Binnie <52460000+devinbinnie@users.noreply.github.com> Date: Wed, 3 Nov 2021 09:10:26 -0400 Subject: [PATCH] [MM-39737] E2E test checking for focused input in Add Server Modal (#1846) --- test/specs/browser/modal_test.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/specs/browser/modal_test.js b/test/specs/browser/modal_test.js index 097e5613..1852b7d1 100644 --- a/test/specs/browser/modal_test.js +++ b/test/specs/browser/modal_test.js @@ -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);