mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-06 06:08:07 +08:00
test: workflow sql node e2e (#3341)
This commit is contained in:
parent
d85aaa36e3
commit
908944ce62
File diff suppressed because it is too large
Load Diff
@ -506,6 +506,29 @@ export class ConditionBranchNode {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export class SQLNode {
|
||||||
|
readonly page: Page;
|
||||||
|
node: Locator;
|
||||||
|
nodeTitle: Locator;
|
||||||
|
nodeConfigure: Locator;
|
||||||
|
sqlEditBox: Locator;
|
||||||
|
submitButton: Locator;
|
||||||
|
cancelButton: Locator;
|
||||||
|
addNodeButton: Locator;
|
||||||
|
constructor(page: Page, nodeName: string) {
|
||||||
|
this.page = page;
|
||||||
|
this.node = page.getByLabel(`SQL action-${nodeName}`, { exact: true });
|
||||||
|
this.nodeTitle = page.getByLabel(`SQL action-${nodeName}`, { exact: true }).getByRole('textbox');
|
||||||
|
this.nodeConfigure = page
|
||||||
|
.getByLabel(`SQL action-${nodeName}`, { exact: true })
|
||||||
|
.getByRole('button', { name: 'Configure' });
|
||||||
|
this.sqlEditBox = page.getByLabel('block-item-WorkflowVariableRawTextArea-workflows-SQL').getByRole('textbox');
|
||||||
|
this.submitButton = page.getByLabel('action-Action-Submit-workflows');
|
||||||
|
this.cancelButton = page.getByLabel('action-Action-Cancel-workflows');
|
||||||
|
this.addNodeButton = page.getByLabel(`add-button-sql-${nodeName}`, { exact: true });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export default module.exports = {
|
export default module.exports = {
|
||||||
CreateWorkFlow,
|
CreateWorkFlow,
|
||||||
EditWorkFlow,
|
EditWorkFlow,
|
||||||
@ -525,4 +548,5 @@ export default module.exports = {
|
|||||||
ManualNode,
|
ManualNode,
|
||||||
ConditionYesNode,
|
ConditionYesNode,
|
||||||
ConditionBranchNode,
|
ConditionBranchNode,
|
||||||
|
SQLNode,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user