Fix proposal specs

After adding proposal translatable fields to forms, they will be generated with nested translations names and ids so we can no longer
use standard id locator.

Using input label text to fill in fields works with both types of forms.
This commit is contained in:
Senén Rodero Rodríguez
2019-01-25 11:26:39 +01:00
committed by voodoorai2000
parent dd310f7507
commit 78c2f54c5d
7 changed files with 61 additions and 61 deletions

View File

@@ -363,8 +363,8 @@ def expect_document_has_cached_attachment(index, extension)
end
def documentable_fill_new_valid_proposal
fill_in :proposal_title, with: "Proposal title #{rand(9999)}"
fill_in :proposal_summary, with: "Proposal summary"
fill_in "Proposal title", with: "Proposal title #{rand(9999)}"
fill_in "Proposal summary", with: "Proposal summary"
check :proposal_terms_of_service
end