"Need to include `action` property or shortcut property in the step config"

Get help with testing, discuss unit testing strategies etc.
Post Reply
User avatar
pelicaneng
Posts: 31
Joined: Fri Sep 02, 2011 9:54 pm

"Need to include `action` property or shortcut property in the step config"

Post by pelicaneng » Wed May 01, 2019 6:33 pm

I'm getting that error when attempting to execute a very simple project via the command line. Specifically, this is my test:

Code: Select all

StartTest(function(t) {
    t.chain(
          {waitForCQ: 'login_panel'},
    );
});
When executing it in the Siesta web UI it works fine. Doing

Code: Select all

node index_node.js
from the command line throws the error:

Code: Select all

fail 1 - Test  threw an exception
Need to include `action` property or shortcut property in the step config: {"waitForCQ": "login_panel"}
The "index_node.js" project file is:

Code: Select all

let Siesta = require('./siesta/index.js');
let project = module.exports = new Siesta.Project.NodeJS();

project.configure({
    title: 'Tests'
});

project.plan([
    'ui/AppLaunch.js'
]);
Using Siesta 5.2.2, Ext JS 6.5.3 Modern.

Thoughts?


- bill

User avatar
Maxim Gorkovsky
Core Developer
Core Developer
Posts: 2734
Joined: Wed Jan 08, 2014 11:46 am

Re: "Need to include `action` property or shortcut property in the step config"

Post by Maxim Gorkovsky » Wed May 01, 2019 6:42 pm

Hello.
Try full action name?

Code: Select all

{ waitForComponentQuery : '...' }

User avatar
pelicaneng
Posts: 31
Joined: Fri Sep 02, 2011 9:54 pm

Re: "Need to include `action` property or shortcut property in the step config"

Post by pelicaneng » Wed May 01, 2019 7:03 pm

Alas:

Code: Select all

fail 1 - Test  threw an exception
Need to include `action` property or shortcut property in the step config: {"waitForComponentQuery": "login_panel"}

User avatar
mats
Core Developer
Core Developer
Posts: 14131
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: "Need to include `action` property or shortcut property in the step config"

Post by mats » Thu May 02, 2019 8:04 am

To use the Ext JS layer you need to use the Ext JS Project class, not Node.

Code: Select all

new Siesta.Project.ExtJS();
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

User avatar
jminutella
Posts: 45
Joined: Wed Oct 19, 2016 3:03 pm

Re: "Need to include `action` property or shortcut property in the step config"

Post by jminutella » Thu May 23, 2019 8:53 pm

Hey, sorry to bump up this thread a few weeks later but I'm also getting the same issue.

I have a couple of Ext JS apps with tests so how can I run these same tests in Node so that I can integrate them into our build process?

Thanks!

User avatar
mats
Core Developer
Core Developer
Posts: 14131
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: "Need to include `action` property or shortcut property in the step config"

Post by mats » Thu May 23, 2019 8:54 pm

You cannot test a web app using Node, Node is for testing non-browser code (unless to import a web mock lib like JsDOM https://www.npmjs.com/package/jsdom)
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

Post Reply