Fix feature specs for markup changes in c9acbfbd

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/2419/head
Alex Coles 10 years ago
parent 1aff46fb26
commit 4c2fba940a
  1. 7
      spec/features/accessibility/work_packages/work_package_query_spec.rb
  2. 2
      spec/features/support/work_package_table.rb
  3. 8
      spec/features/work_packages/saving_queries.rb
  4. 4
      spec/features/work_packages/select_query_spec.rb
  5. 2
      spec/features/work_packages/work_packages_page.rb

@ -40,7 +40,7 @@ describe 'Work package index accessibility', type: :feature do
def visit_index_page
work_packages_page.visit_index
# ensure the page is loaded before expecting anything
find('.filter-fields select option', text: /\AAssignee\Z/,
find('.work-packages-filters--filters select option', text: /\AAssignee\Z/,
visible: false)
end
@ -57,8 +57,9 @@ describe 'Work package index accessibility', type: :feature do
# the data in the db to prepare for the next spec.
#
# Taking an element, that get's activated late in the page setup.
expect(page).to have_selector('.filter label', text: I18n.t(:label_status),
visible: false)
expect(page).to have_selector('.work-packages-filters--filter label',
text: I18n.t(:label_status),
visible: false)
end
describe 'Select all link' do

@ -82,6 +82,6 @@ shared_context 'work package table helpers' do
# the last spec, might expect data that has already been removed as
# preparation for the current spec.
find('#work-packages-filter-toggle-button').click
expect(page).to have_selector('.filter label', text: 'Status')
expect(page).to have_selector('.work-packages-filters--filter label', text: 'Status')
end
end

@ -63,8 +63,8 @@ describe 'Query Saving', type: :feature, js: true do
before do
work_packages_page.select_query query
# ensure the page is loaded before expecting anything
find('.filter-fields select option', text: /\AAssignee\Z/,
visible: false)
find('.work-packages-filters--filters select option', text: /\AAssignee\Z/,
visible: false)
end
it 'should select its menu item' do
@ -80,8 +80,8 @@ describe 'Query Saving', type: :feature, js: true do
fill_in 'query_name', with: 'newQueryName'
find_button('Save').click
# ensure the page is loaded before expecting anything
find('.filter-fields select option', text: /\AAssignee\Z/,
visible: false)
find('.work-packages-filters--filters select option', text: /\AAssignee\Z/,
visible: false)
end
it 'should select the new menu item' do

@ -55,8 +55,8 @@ describe 'Query selection', type: :feature do
before do
work_packages_page.select_query query
# ensure the page is loaded before expecting anything
find('.filter-fields select option', text: /\AAssignee\Z/,
visible: false)
find('.work-packages-filters--filters select option', text: /\AAssignee\Z/,
visible: false)
end
it 'should show the filter', js: true do

@ -67,7 +67,7 @@ class WorkPackagesPage
end
def selected_filter(filter_name)
find(".filter-fields #tr_#{filter_name}")
find(".work-packages-filters--filters #filter_#{filter_name}")
end
private

Loading…
Cancel
Save