Skip to content
This repository was archived by the owner on Feb 5, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion installer/frontend/components/submit-definition.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const SubmitDefinition = withNav(connect(
</div>
<p>
<b>Advanced mode: </b>
<a onClick={() => onFinish(true)}>Manually boot</a> your own cluster. Validate configuration, generate assets, but don't create the cluster.
<a id="manualBoot" onClick={() => onFinish(true)}>Manually boot</a> your own cluster. Validate configuration, generate assets, but don't create the cluster.
</p>
<div className={errorClasses}>
{errorMessage}
Expand Down
4 changes: 2 additions & 2 deletions installer/frontend/components/ui.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const ToggleButton = connect(
onValue(!value);
dispatch(dirtyActions.add(id));
}}),
)(({children, className, onClick, value}) => <button className={className} onClick={onClick}>
)(({children, className, id, onClick, value}) => <button className={className} id={id} onClick={onClick}>
{value ? 'Hide' : 'Show'}&nbsp;{children}
<i style={{marginLeft: 7}} className={classNames('fa', {'fa-chevron-up': value, 'fa-chevron-down': !value})}></i>
</button>);
Expand Down Expand Up @@ -461,7 +461,7 @@ export const FieldRowList = connect(
})}
<div className="row">
<div className="col-xs-3">
<span className="wiz-link" onClick={() => {
<span className="wiz-link" id="addMore" onClick={() => {
this.setState({autoFocus: true});
appendField(id);
}}>
Expand Down
5 changes: 1 addition & 4 deletions installer/frontend/ui-tests/pages/defineMastersPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
};
5 changes: 1 addition & 4 deletions installer/frontend/ui-tests/pages/defineWorkersPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
};
7 changes: 1 addition & 6 deletions installer/frontend/ui-tests/pages/downloadAssetsPage.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
module.exports = {
elements: {
downloadAsserts: {
selector: '(//i[class=".fa-download"])[1]',
locateStrategy: 'xpath',
},
},
elements: {},
};
5 changes: 1 addition & 4 deletions installer/frontend/ui-tests/pages/networkingPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
5 changes: 1 addition & 4 deletions installer/frontend/ui-tests/pages/submitPage.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
module.exports = {
elements: {
manuallyBoot: {
selector: '//a[contains(text(), "Manually boot")]',
locateStrategy: 'xpath',
},
manualBoot: '#manualBoot',
},
};
4 changes: 2 additions & 2 deletions installer/frontend/ui-tests/utils/terraformTfvars.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}) => {
Expand Down