Commit 4100b09d authored by Walmyr Lima's avatar Walmyr Lima

Update page object views definition

- To order them alphabitically;
and
- To replace element with an standardized one
parent 6a202278
......@@ -5,18 +5,18 @@ module QA
module Project
module Issue
class New < Page::Base
view 'app/views/shared/form_elements/_description.html.haml' do
element :issue_description_textarea, "render 'projects/zen', f: form, attr: :description" # rubocop:disable QA/ElementWithPattern
end
view 'app/views/shared/issuable/_form.html.haml' do
element :submit_issue_button, 'form.submit "Submit' # rubocop:disable QA/ElementWithPattern
element :issuable_create_button
end
view 'app/views/shared/issuable/form/_title.html.haml' do
element :issue_title_textbox, 'form.text_field :title' # rubocop:disable QA/ElementWithPattern
end
view 'app/views/shared/form_elements/_description.html.haml' do
element :issue_description_textarea, "render 'projects/zen', f: form, attr: :description" # rubocop:disable QA/ElementWithPattern
end
def add_title(title)
fill_in 'issue_title', with: title
end
......
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