stable

Clone or download

Read-only

Introduce an end-to-end test for the creation artifact modal

Part of request #19273 Have an end-to-end test for the creation artifact modal It does not look like this matches a test_case, I'll create one. How to test: - "make tests_cypress" should succeed Notes: The "file" field is not tested yet. It looks like it may be possible to test file upload through cypress but I would prefer to try this in a dedicated patch as this test is already pretty huge. Please also note that I have purposefully "cheated" for ListPicker and date picker by using "force: true". The purpose of this test is not to test in detail how the date picker or list picker works. We should write integration tests dedicated to these components. I've made an exception for Select2 in open lists because there is no way to "cheat" for open list bound to ugroups. It fetches users by autocompletion, so I cannot use .select(). Change-Id: Ifcb3b12173504b1c985c119641bea04609ff7456

Modified Files

Name
M plugins/agiledashboard/scripts/kanban/src/app/kanban.tpl.html +7 −4 Go to diff View file
A plugins/agiledashboard/tests/e2e/cypress/_fixtures/artifact-modal/project.xml +607 −0 Go to diff View file
A plugins/agiledashboard/tests/e2e/cypress/_fixtures/artifact-modal/users.xml +35 −0 Go to diff View file
A plugins/agiledashboard/tests/e2e/cypress/cypress/integration/artifact-modal.spec.ts +275 −0 Go to diff View file
M plugins/testmanagement/tests/e2e/cypress/cypress/integration/campaign.spec.ts +14 −4 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/computed-field/computed-field.tpl.html +2 −0 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/date-field/date-field.tpl.html +2 −0 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/link-field/link-field.tpl.html +6 −2 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/list-picker-field/list-picker-field.tpl.html +6 −1 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/list-picker-multiple-field/list-picker-multiple-field.tpl.html +6 −1 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/open-list-field/static-open-list-field.tpl.html +7 −4 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/open-list-field/ugroups-open-list-field.tpl.html +7 −4 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/open-list-field/users-open-list-field.tpl.html +7 −4 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/permission-field/permission-field.tpl.html +6 −2 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/text-field/TextField.vue +1 −0 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal.tpl.html +23 −9 Go to diff View file