-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(EMS-3789): dry cypress commands - task link clicks (#3000)
* chore(EMS-3789): dry cypress commands - task links - check your answers * chore(EMS-3789): dry cypress commands - task links - declarations/submit * chore(EMS-3789): dry cypress commands - task links
- Loading branch information
Showing
117 changed files
with
196 additions
and
659 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
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
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
13 changes: 13 additions & 0 deletions
13
e2e-tests/commands/shared-commands/click-events/tasks/click-task-business.js
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,13 @@ | ||
import taskList from '../../../../partials/insurance/taskList'; | ||
|
||
/** | ||
* clickTaskBusiness | ||
* Click the "Business" task link | ||
*/ | ||
const clickTaskBusiness = () => { | ||
const task = taskList.prepareApplication.tasks.business; | ||
|
||
task.link().click(); | ||
}; | ||
|
||
export default clickTaskBusiness; |
13 changes: 13 additions & 0 deletions
13
e2e-tests/commands/shared-commands/click-events/tasks/click-task-buyer.js
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,13 @@ | ||
import taskList from '../../../../partials/insurance/taskList'; | ||
|
||
/** | ||
* clickTaskBuyer | ||
* Click the "Buyer" task link | ||
*/ | ||
const clickTaskBuyer = () => { | ||
const task = taskList.prepareApplication.tasks.buyer; | ||
|
||
task.link().click(); | ||
}; | ||
|
||
export default clickTaskBuyer; |
13 changes: 13 additions & 0 deletions
13
e2e-tests/commands/shared-commands/click-events/tasks/click-task-check-answers.js
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,13 @@ | ||
import taskList from '../../../../partials/insurance/taskList'; | ||
|
||
/** | ||
* clickTaskCheckAnswers | ||
* Click the "Check answers" task link | ||
*/ | ||
const clickTaskCheckAnswers = () => { | ||
const task = taskList.submitApplication.tasks.checkAnswers; | ||
|
||
task.link().click(); | ||
}; | ||
|
||
export default clickTaskCheckAnswers; |
13 changes: 13 additions & 0 deletions
13
e2e-tests/commands/shared-commands/click-events/tasks/click-task-declarations-and-submit.js
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,13 @@ | ||
import taskList from '../../../../partials/insurance/taskList'; | ||
|
||
/** | ||
* clickTaskDeclarationsAndSubmit | ||
* Click the "Declarations and submit" task link | ||
*/ | ||
const clickTaskDeclarationsAndSubmit = () => { | ||
const task = taskList.submitApplication.tasks.declarationsAndSubmit; | ||
|
||
task.link().click(); | ||
}; | ||
|
||
export default clickTaskDeclarationsAndSubmit; |
13 changes: 13 additions & 0 deletions
13
e2e-tests/commands/shared-commands/click-events/tasks/click-task-export-contract.js
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,13 @@ | ||
import taskList from '../../../../partials/insurance/taskList'; | ||
|
||
/** | ||
* clickTaskExportContract | ||
* Click the "Export contract" task link | ||
*/ | ||
const clickTaskExportContract = () => { | ||
const task = taskList.prepareApplication.tasks.exportContract; | ||
|
||
task.link().click(); | ||
}; | ||
|
||
export default clickTaskExportContract; |
13 changes: 13 additions & 0 deletions
13
e2e-tests/commands/shared-commands/click-events/tasks/click-task-policy.js
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,13 @@ | ||
import taskList from '../../../../partials/insurance/taskList'; | ||
|
||
/** | ||
* clickTaskPolicy | ||
* Click the "Policy" task link | ||
*/ | ||
const clickTaskPolicy = () => { | ||
const task = taskList.prepareApplication.tasks.policy; | ||
|
||
task.link().click(); | ||
}; | ||
|
||
export default clickTaskPolicy; |
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
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
Oops, something went wrong.