Add feature test for Pipeline Editor tabs and linting
requested to merge 414752-frontend-add-feature-test-for-pipeline-editor-tabs-and-linting into master
What does this MR do and why?
As a part of shifting left and optimizing E2E test suites https://gitlab.com/gitlab-com/gitlab-OKRs/-/work_items/2542 , I think we can move test examples in E2E test pipeline_editor_tabs_spec.rb to feature spec.
- Verify all 4 tabs rendered on Pipeline Editor page (assume project already has a CI yml file): Edit, Visualize, Validate, Full configuration and Edit tab is selected by default
- Verify when CI yml has valid syntax:
- Has validation "syntax is invalid"
- Visualization tab has validation "syntax is invalid" and does not display any job
- Gets simulation error when trying to simulate pipeline in Validate tab
- Full configuration tab has source editor rendered and content is not empty
- Verify when CI yml has invalid syntax:
- Has validation "Pipeline syntax is correct"
- Visualization tab displays correct Jobs and Stages
- Can simulate pipeline in Validate tab
- Full configuration tab has source editor rendered and content is not empty
Screenshots or screen recordings
No change
How to set up and validate locally
Green pipeline means all is well
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #414752 (closed)
Edited by Frédéric Caplette