diff --git a/ui/nightwatch.json b/ui/nightwatch.json index d47fca7b1..367e9e2fe 100644 --- a/ui/nightwatch.json +++ b/ui/nightwatch.json @@ -12,6 +12,8 @@ "port": 80 }, + "live_output" : true, + "test_settings": { "default": { "selenium_port": 80, @@ -28,7 +30,7 @@ "browserstack.key": "${BROWSERSTACK_KEY}", "browserstack.debug": true, "browserstack.local": true, - "resolution": "1024x768" + "resolution": "1280x1024" } } } diff --git a/ui/src/data_explorer/components/FieldListItem.js b/ui/src/data_explorer/components/FieldListItem.js index f1f463b5f..9c730a47c 100644 --- a/ui/src/data_explorer/components/FieldListItem.js +++ b/ui/src/data_explorer/components/FieldListItem.js @@ -78,6 +78,7 @@ const FieldListItem = React.createClass({ 'btn-primary': fieldFunc.funcs.length, })} onClick={this.toggleFunctionsMenu} + data-test={`query-builder-list-item-function-${fieldText}`} > {fieldFuncsLabel} diff --git a/ui/src/data_explorer/components/VisHeader.js b/ui/src/data_explorer/components/VisHeader.js index 8a822a52a..4f118145a 100644 --- a/ui/src/data_explorer/components/VisHeader.js +++ b/ui/src/data_explorer/components/VisHeader.js @@ -11,6 +11,7 @@ const VisHeader = ({views, view, onToggleView, name}) => key={v} onClick={() => onToggleView(v)} className={classnames({active: view === v})} + data-test={`data-${v}`} > {_.upperFirst(v)} diff --git a/ui/src/shared/components/FunctionSelector.js b/ui/src/shared/components/FunctionSelector.js index 75be5eb5a..5abc26dd7 100644 --- a/ui/src/shared/components/FunctionSelector.js +++ b/ui/src/shared/components/FunctionSelector.js @@ -74,6 +74,7 @@ class FunctionSelector extends Component {