eabb308ac2
* ui: Add ember steps:list command for listing available steps 1. Adds `command` addon to house the new command 2. Start to organize out the steps themselves, bring a bit more order to things ready to dedupe and cleanup
21 lines
560 B
JavaScript
21 lines
560 B
JavaScript
/* eslint no-console: "off" */
|
|
export default function(scenario, assert, currentURL) {
|
|
scenario
|
|
.then('print the current url', function(url) {
|
|
console.log(currentURL());
|
|
return Promise.resolve();
|
|
})
|
|
.then('log the "$text"', function(text) {
|
|
console.log(text);
|
|
return Promise.resolve();
|
|
})
|
|
.then('pause for $milliseconds', function(milliseconds) {
|
|
return new Promise(function(resolve) {
|
|
setTimeout(resolve, milliseconds);
|
|
});
|
|
})
|
|
.then('ok', function() {
|
|
assert.ok(true);
|
|
});
|
|
}
|