diff --git a/e2e/specs/server_management/add_server_modal.test.js b/e2e/specs/server_management/add_server_modal.test.js index ee9c9c2449b..297992830bf 100644 --- a/e2e/specs/server_management/add_server_modal.test.js +++ b/e2e/specs/server_management/add_server_modal.test.js @@ -41,7 +41,7 @@ describe('Add Server Modal', function desc() { let newServerView; it('MM-T1312 should focus the first text input', async () => { - const isFocused = await newServerView.$eval('#teamNameInput', (el) => el === document.activeElement); + const isFocused = await newServerView.$eval('#teamNameInput', (el) => el.isSameNode(document.activeElement)); isFocused.should.be.true; }); diff --git a/src/renderer/components/ConfigureServer.tsx b/src/renderer/components/ConfigureServer.tsx index 3776588816c..f8beb044d8a 100644 --- a/src/renderer/components/ConfigureServer.tsx +++ b/src/renderer/components/ConfigureServer.tsx @@ -301,39 +301,39 @@ function ConfigureServer({