c98130cc08
* ui: Add the most basic workspace root in /ui * We already have a LICENSE file in the repository root * Change directory path in build scripts ui-v2 -> ui * Make yarn install flags configurable from elsewhere * Minimal workspace root makefile * Call the new docker specific target * Update yarn in the docker build image * Reconfigure the netlify target and move to the higher makefile * Move ui-v2 -> ui/packages/consul-ui * Change repo root to refleect new folder structure * Temporarily don't hoist consul-api-double * Fixup CI configuration * Fixup lint errors * Fixup Netlify target
22 lines
585 B
JavaScript
22 lines
585 B
JavaScript
export default function(scenario, find, click) {
|
|
scenario
|
|
.when('I click "$selector"', function(selector) {
|
|
return click(selector);
|
|
})
|
|
// TODO: Probably nicer to think of better vocab than having the 'without " rule'
|
|
.when(['I click (?!")$property(?!")', 'I click $property on the $component'], function(
|
|
property,
|
|
component,
|
|
next
|
|
) {
|
|
try {
|
|
if (typeof component === 'string') {
|
|
property = `${component}.${property}`;
|
|
}
|
|
return find(property)();
|
|
} catch (e) {
|
|
throw e;
|
|
}
|
|
});
|
|
}
|