Skip to content

Commit d7c69a7

Browse files
Add a test for the DEW Approver row on a non-Control workspace
Co-authored-by: Krishna <Krishna2323@users.noreply.github.com>
1 parent 03a85fe commit d7c69a7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎tests/ui/WorkspaceInviteMessageDEWApproverRowTest.tsx‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,4 +206,12 @@ describe('WorkspaceInviteMessageComponent - Approver row on Dynamic External Wor
206206
// Then there is no per-member approver to set, so the row stays hidden
207207
expect(queryApproverRow()).not.toBeOnTheScreen();
208208
});
209+
210+
it('keeps the Approver row hidden on a DEW workspace that is not on the Control plan', async () => {
211+
// Given a Collect (Team) workspace that still has a Dynamic External Workflow approval mode
212+
await renderPage(buildPolicy({type: CONST.POLICY.TYPE.TEAM, approvalMode: CONST.POLICY.APPROVAL_MODE.DYNAMICEXTERNAL}));
213+
214+
// Then the row stays hidden, because per-member approvers are a Control-only feature
215+
expect(queryApproverRow()).not.toBeOnTheScreen();
216+
});
209217
});

0 commit comments

Comments
 (0)