- {
+ {
this.setState({autoFocus: true});
appendField(id);
}}>
diff --git a/installer/frontend/ui-tests/pages/defineMastersPage.js b/installer/frontend/ui-tests/pages/defineMastersPage.js
index e7fbe3b847..2440c45929 100644
--- a/installer/frontend/ui-tests/pages/defineMastersPage.js
+++ b/installer/frontend/ui-tests/pages/defineMastersPage.js
@@ -33,10 +33,7 @@ module.exports = {
mac1: 'input[id="masters.1.mac"]',
hosts1: 'input[id="masters.1.host"]',
deleteIcon1: '.row:nth-child(2) i.fa-minus-circle',
- addMore: {
- selector: '//*[text()[contains(.,"Add More")]]',
- locateStrategy: 'xpath',
- },
+ addMore: '#addMore',
alertError: '.alert-error',
},
};
diff --git a/installer/frontend/ui-tests/pages/defineWorkersPage.js b/installer/frontend/ui-tests/pages/defineWorkersPage.js
index 744ebbd078..177a24b805 100644
--- a/installer/frontend/ui-tests/pages/defineWorkersPage.js
+++ b/installer/frontend/ui-tests/pages/defineWorkersPage.js
@@ -31,10 +31,7 @@ module.exports = {
deleteIcon0: '.row:nth-child(1) i.fa-minus-circle',
mac1: 'input[id="workers.1.mac"]',
hosts1: 'input[id="workers.1.host"]',
- addMore: {
- selector: '//*[text()[contains(.,"Add More")]]',
- locateStrategy: 'xpath',
- },
+ addMore: '#addMore',
alertError: '.alert-error',
},
};
diff --git a/installer/frontend/ui-tests/pages/downloadAssetsPage.js b/installer/frontend/ui-tests/pages/downloadAssetsPage.js
index 2c721e0ff1..343d887a59 100644
--- a/installer/frontend/ui-tests/pages/downloadAssetsPage.js
+++ b/installer/frontend/ui-tests/pages/downloadAssetsPage.js
@@ -1,8 +1,3 @@
module.exports = {
- elements: {
- downloadAsserts: {
- selector: '(//i[class=".fa-download"])[1]',
- locateStrategy: 'xpath',
- },
- },
+ elements: {},
};
diff --git a/installer/frontend/ui-tests/pages/networkingPage.js b/installer/frontend/ui-tests/pages/networkingPage.js
index 33ff20842f..71aee2f385 100644
--- a/installer/frontend/ui-tests/pages/networkingPage.js
+++ b/installer/frontend/ui-tests/pages/networkingPage.js
@@ -106,10 +106,7 @@ const pageCommands = {
module.exports = {
commands: [pageCommands],
elements: {
- advanced: {
- selector: '//*[text()[contains(.,"Advanced Settings")]]',
- locateStrategy: 'xpath',
- },
+ advanced: '#awsAdvancedNetworking',
alertError: '.alert-error',
k8sCIDRsErrorTitle: '#k8sCIDRs .alert-error b',
k8sCIDRsWarningTitle: '#k8sCIDRs .alert-info b',
diff --git a/installer/frontend/ui-tests/pages/submitPage.js b/installer/frontend/ui-tests/pages/submitPage.js
index 188cbca8ed..0200be91e3 100644
--- a/installer/frontend/ui-tests/pages/submitPage.js
+++ b/installer/frontend/ui-tests/pages/submitPage.js
@@ -1,8 +1,5 @@
module.exports = {
elements: {
- manuallyBoot: {
- selector: '//a[contains(text(), "Manually boot")]',
- locateStrategy: 'xpath',
- },
+ manualBoot: '#manualBoot',
},
};
diff --git a/installer/frontend/ui-tests/utils/terraformTfvars.js b/installer/frontend/ui-tests/utils/terraformTfvars.js
index 947a53e886..0a61c2fb3a 100644
--- a/installer/frontend/ui-tests/utils/terraformTfvars.js
+++ b/installer/frontend/ui-tests/utils/terraformTfvars.js
@@ -28,10 +28,10 @@ const testManualBoot = (client, expectedOutputFilePath, ignoredKeys) => {
// It should be safe to refresh the page and have all field values preserved
client.refresh();
- page.expect.element('@manuallyBoot').to.be.visible.before(60000);
+ page.expect.element('@manualBoot').to.be.visible.before(60000);
page
- .click('@manuallyBoot')
+ .click('@manualBoot')
.expect.element('a[href="/terraform/assets"]').to.be.visible.before(120000);
client.getCookie('tectonic-installer', ({value}) => {