Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/project/pipeline_editor/show.rb')
-rw-r--r--qa/qa/page/project/pipeline_editor/show.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/qa/qa/page/project/pipeline_editor/show.rb b/qa/qa/page/project/pipeline_editor/show.rb
index 70c0c5abb52..8fa20aa57cf 100644
--- a/qa/qa/page/project/pipeline_editor/show.rb
+++ b/qa/qa/page/project/pipeline_editor/show.rb
@@ -91,6 +91,8 @@ module QA
def write_to_editor(text)
find_element(:source_editor_container).fill_in(with: text)
+
+ wait_for_requests
end
def submit_changes
@@ -140,6 +142,10 @@ module QA
all_elements(:job_container, minimum: 1).any? { |item| item.text.match(/#{name}/i) }
end
+ def has_no_alert?
+ has_no_css?('.gl-alert-body')
+ end
+
def tab_alert_message
within_element(:file_editor_container) do
find('.gl-alert-body').text
@@ -174,9 +180,13 @@ module QA
within_element(:file_editor_container) do
find('.nav-item', text: name).click
end
+
+ wait_for_requests
end
end
end
end
end
end
+
+QA::Page::Project::PipelineEditor::Show.prepend_mod_with('Page::Project::PipelineEditor::Show', namespace: QA)