Skip to content

Commit

Permalink
Enable screenshots hopefully
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Barnabe committed Feb 12, 2019
1 parent cb4c44a commit 51d47df
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions spec/features/detached_filters_two_grids_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# encoding: utf-8
require 'acceptance_helper'

describe 'buttons WiceGrid', type: :request, js: true do
describe 'buttons WiceGrid', type: :feature, js: true do
before :each do
visit '/detached_filters_two_grids'
end
Expand Down Expand Up @@ -31,9 +31,6 @@
set_datepicker(self, 'grid_f_due_date_to_date_placeholder', 2012, 11, 31)
find(:css, '.external-buttons-grid1 .wg-external-submit-button').click

# Test is flaky, not sure why.
sleep 1

within 'div#grid.wice-grid-container .pagination_status' do
expect(page).to have_content('1-3 / 3')
end
Expand All @@ -42,8 +39,6 @@
set_datepicker(self, 'grid2_f_due_date_to_date_placeholder', 2013, 11, 31)
find(:css, '.external-buttons-grid2 .wg-external-submit-button').click

sleep 1

# stays the same
within 'div#grid.wice-grid-container .pagination_status' do
expect(page).to have_content('1-3 / 3')
Expand All @@ -55,8 +50,6 @@

find(:css, '.external-buttons-grid1 .wg-external-reset-button').click

sleep 1

within 'div#grid.wice-grid-container .pagination_status' do
expect(page).to have_content('1-20 / 50')
end
Expand All @@ -67,8 +60,6 @@

find(:css, '.external-buttons-grid2 .wg-external-reset-button').click

sleep 1

within 'div#grid.wice-grid-container .pagination_status' do
expect(page).to have_content('1-20 / 50')
end
Expand All @@ -81,8 +72,6 @@

find(:css, '.external-buttons-grid1 .wg-external-submit-button').click

sleep 1

within 'div#grid.wice-grid-container .pagination_status' do
expect(page).to have_content('1-2 / 2')
end
Expand Down Expand Up @@ -134,5 +123,7 @@
within first(:css, 'div#grid2.wice-grid-container table.wice-grid tbody tr:first-child td.active-filter') do
expect(page).to have_content('sequi')
end

expect(true).to eq(false)
end
end

0 comments on commit 51d47df

Please sign in to comment.