-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1894 from ProcessMaker/feature/FOUR-20487
FOUR-20487: Display "Screen Interstitial" Option
- Loading branch information
Showing
4 changed files
with
85 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
const { nodeTypes } = require('../support/constants'); | ||
const { | ||
clickAndDropElement, | ||
waitToRenderAllShapes, | ||
getElementAtPosition, | ||
toggleInspector, | ||
} = require('../support/utils'); | ||
|
||
// Test suite for Display Next Assigned Task functionality | ||
describe('Display Next Assigned Task', { scrollBehavior: false }, () => { | ||
|
||
// Setup before each test | ||
beforeEach(() => { | ||
toggleInspector(); | ||
}); | ||
|
||
// Step 1: Test selecting Display Next Assigned Task option | ||
it('should select Display Next Assigned Task as element destination type', () => { | ||
const manualTaskPosition = { x: 300, y: 200 }; | ||
clickAndDropElement(nodeTypes.task, manualTaskPosition); | ||
waitToRenderAllShapes(); | ||
getElementAtPosition(manualTaskPosition).click(); | ||
|
||
// Verify element destination dropdown exists and select option | ||
cy.get('[data-test=element-destination-type]').should('exist').click(); | ||
cy.get('[id=option-1-6]').click(); | ||
|
||
// Verify selected option is displayed correctly | ||
cy.get('[class=multiselect__single]').should('exist').contains('Display Next Assigned Task'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters