Merge pull request #40 from amhsirak/develop
feat(core): handle multiple custom actions together
This commit is contained in:
@@ -253,7 +253,7 @@ export default class Interpreter extends EventEmitter {
|
|||||||
* calls all mentioned functions on the Page object.\
|
* calls all mentioned functions on the Page object.\
|
||||||
* \
|
* \
|
||||||
* Manipulates the iterator indexes (experimental feature, likely to be removed in
|
* Manipulates the iterator indexes (experimental feature, likely to be removed in
|
||||||
* the following versions of waw-interpreter)
|
* the following versions of maxun-core)
|
||||||
* @param page Playwright Page object
|
* @param page Playwright Page object
|
||||||
* @param steps Array of actions.
|
* @param steps Array of actions.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ export default class Preprocessor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Recursion general case
|
// Recursion general case
|
||||||
return Object.values(object)
|
return (Object.values(object) as any[])
|
||||||
.reduce((p: string[], v: any): string[] => [...p, ...getParamsRecurse(v)], []);
|
.reduce((p: string[], v: any): string[] => [...p, ...getParamsRecurse(v)], []);
|
||||||
}
|
}
|
||||||
return [];
|
return [];
|
||||||
|
|||||||
Reference in New Issue
Block a user