attempt to fix spec by using more standard methods

pull/4748/head
Jens Ulferts 8 years ago committed by manuschiller
parent d9ebcdb0a1
commit adfa2242f4
  1. 19
      spec/features/work_packages/details/inplace_editor/version_editor_spec.rb

@ -29,22 +29,23 @@ describe 'subject inplace editor', js: true, selenium: true do
}
let(:property_name) { :version }
let!(:work_package) { FactoryGirl.create :work_package, project: project }
let(:work_package) { FactoryGirl.create :work_package, project: project }
let(:user) { FactoryGirl.create :admin }
let(:work_packages_page) { WorkPackagesPage.new(project) }
let(:field) { WorkPackageField.new page, property_name }
let(:work_package_page) { Pages::FullWorkPackage.new(work_package) }
before do
login_as(user)
work_packages_page.visit_index(work_package)
within '.panel-toggler' do
find('a', text: 'Show all attributes').click
end
field.activate_edition
end
it 'renders hierarchical versions' do
work_package_page.visit!
work_package_page.view_all_attributes
work_package_page.ensure_page_loaded
field = work_package_page.work_package_field(:version)
field.activate_edition
expect(page).to have_selector("#{field.field_selector} select")
options = page.all("#{field.field_selector} select option")

Loading…
Cancel
Save