diff --git a/installer/frontend/components/submit-definition.jsx b/installer/frontend/components/submit-definition.jsx index b751c46704..0893ebc483 100644 --- a/installer/frontend/components/submit-definition.jsx +++ b/installer/frontend/components/submit-definition.jsx @@ -45,7 +45,7 @@ export const SubmitDefinition = withNav(connect(

Advanced mode: - onFinish(true)}>Manually boot your own cluster. Validate configuration, generate assets, but don't create the cluster. + onFinish(true)}>Manually boot your own cluster. Validate configuration, generate assets, but don't create the cluster.

{errorMessage} diff --git a/installer/frontend/components/ui.jsx b/installer/frontend/components/ui.jsx index f796433c39..0ea40d6db7 100644 --- a/installer/frontend/components/ui.jsx +++ b/installer/frontend/components/ui.jsx @@ -201,7 +201,7 @@ export const ToggleButton = connect( onValue(!value); dispatch(dirtyActions.add(id)); }}), -)(({children, className, onClick, value}) => ); @@ -461,7 +461,7 @@ export const FieldRowList = connect( })}
- { + { 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}) => {