mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:38:51 +00:00
test: add locator for approval workflow to enable the withdraw button (#4859)
This commit is contained in:
parent
9033f73584
commit
2ef747de7f
@ -97,6 +97,7 @@ export class ApprovalTriggerNode {
|
||||
configureFieldsButton: Locator;
|
||||
configureActionsButton: Locator;
|
||||
saveDraftSwitch: Locator;
|
||||
withdrawSwitch: Locator;
|
||||
preloadAssociationsDropDown: Locator;
|
||||
submitButton: Locator;
|
||||
cancelButton: Locator;
|
||||
@ -122,6 +123,7 @@ export class ApprovalTriggerNode {
|
||||
`schema-initializer-ActionBar-ApprovalApplyAddActionButton-${collectionName}`,
|
||||
);
|
||||
this.saveDraftSwitch = page.getByRole('menuitem', { name: 'Save draft' }).getByRole('switch');
|
||||
this.withdrawSwitch = page.getByRole('menuitem', { name: 'Withdraw' }).getByRole('switch');
|
||||
this.preloadAssociationsDropDown = page.getByTestId('select-field-Preload associations');
|
||||
this.submitButton = page.getByLabel('action-Action-Submit-workflows');
|
||||
this.cancelButton = page.getByLabel('action-Action-Cancel-workflows');
|
||||
|
Loading…
Reference in New Issue
Block a user