Commit c6e88d58 authored by Ramya Authappan's avatar Ramya Authappan

Merge branch 'license_compliance_fix' into 'master'

Add a fix for license_compliance_spec

Closes #234068

See merge request gitlab-org/gitlab!38930
parents 331c5d85 123b64c2
...@@ -51,16 +51,16 @@ module QA ...@@ -51,16 +51,16 @@ module QA
end end
def approve_license(name) def approve_license(name)
wait_until(reload: true) do
click_license(name) click_license(name)
wait_until(reload: false) do
has_element?(:approve_license_button, wait: 1) has_element?(:approve_license_button, wait: 1)
end end
click_element(:approve_license_button) click_element(:approve_license_button)
end end
def deny_license(name) def deny_license(name)
wait_until(reload: true) do
click_license(name) click_license(name)
wait_until(reload: false) do
has_element?(:deny_license_button, wait: 1) has_element?(:deny_license_button, wait: 1)
end end
click_element(:deny_license_button) click_element(:deny_license_button)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment