wice_grid icon indicating copy to clipboard operation
wice_grid copied to clipboard

Fixes #68 Problems with csv export

Open dima4p opened this issue 5 years ago • 6 comments

dima4p avatar Jul 15 '19 19:07 dima4p

There are 2 problems with the latest tests:

  1. phantomjs (not gem) is not installed on the testing machine.
  2. Two failing specs
rspec ./spec/features/auto_reloads3_request_spec.rb:74 # auto reloads 3 WiceGrid should filter by Due Date independantly
rspec ./spec/features/csv_export_request_spec.rb:9 # CSV export WiceGrid should export csv

fail on master too.

dima4p avatar Jul 16 '19 06:07 dima4p

@dima4p thanks! Will you have a look at the failing spec(s) as well?

rspec ./spec/features/auto_reloads3_request_spec.rb:74 # auto reloads 3 WiceGrid should filter by Due Date independantly
rspec ./spec/features/csv_export_request_spec.rb:9 # CSV export WiceGrid should export csv

(these do not fail on master on my machine locally)

kreintjes avatar Jan 29 '20 12:01 kreintjes

@dima4p thanks! Will you have a look at the failing spec(s) as well?

rspec ./spec/features/auto_reloads3_request_spec.rb:74 # auto reloads 3 WiceGrid should filter by Due Date independantly
rspec ./spec/features/csv_export_request_spec.rb:9 # CSV export WiceGrid should export csv

(these do not fail on master on my machine locally)

They do fail on my machine locally on upstream/master. Sorry.

dima4p avatar Jan 29 '20 13:01 dima4p

ruby 2.6.3

dima4p avatar Jan 29 '20 13:01 dima4p

Hi Dima, I just tested your branch again, but 1 spec keeps failing while it does not on master (locally on my machine):

Failures:

  1) CSV export WiceGrid should export csv
     Failure/Error: expect(page).to have_content('ID;Title;Priority;Status;Project Name;')
       expected #has_content?("ID;Title;Priority;Status;Project Name;") to return true, got false
     # ./spec/features/csv_export_request_spec.rb:11:in `block (2 levels) in <top (required)>'

Finished in 1 minute 52.23 seconds (files took 5.64 seconds to load)
224 examples, 1 failure

Failed examples:

rspec ./spec/features/csv_export_request_spec.rb:9 # CSV export WiceGrid should export csv

This seems related to the CSV export, so I do think it is broken because of your changes. Could you please have a look at it again? I'm using ruby 2.6.5p114.

kreintjes avatar May 20 '20 15:05 kreintjes

Hi Dima, I just tested your branch again, but 1 spec keeps failing while it does not on master (locally on my machine):

Failures:

  1) CSV export WiceGrid should export csv
     Failure/Error: expect(page).to have_content('ID;Title;Priority;Status;Project Name;')
       expected #has_content?("ID;Title;Priority;Status;Project Name;") to return true, got false
     # ./spec/features/csv_export_request_spec.rb:11:in `block (2 levels) in <top (required)>'

Finished in 1 minute 52.23 seconds (files took 5.64 seconds to load)
224 examples, 1 failure

Failed examples:

rspec ./spec/features/csv_export_request_spec.rb:9 # CSV export WiceGrid should export csv

This seems related to the CSV export, so I do think it is broken because of your changes. Could you please have a look at it again? I'm using ruby 2.6.5p114.

I have also installed ruby 2.6.5p114 and at the commit c7a9da2a70 (that is patricklindsay:master] I have 2 failures:

Failures:

  1) auto reloads 3 WiceGrid should filter by Due Date independantly
     Failure/Error: expect(page).to have_content('2013-01-26')
       expected #has_content?("2013-01-26") to return true, got false
     # ./spec/features/auto_reloads3_request_spec.rb:100:in `block (3 levels) in <top (required)>'
     # /usr/local/rvm/gems/ruby-2.6.5@github/gems/capybara-3.13.2/lib/capybara/session.rb:344:in `within'
     # /usr/local/rvm/gems/ruby-2.6.5@github/gems/capybara-3.13.2/lib/capybara/dsl.rb:51:in `block (2 levels) in <module:DSL>'
     # /usr/local/rvm/gems/ruby-2.6.5@github/gems/capybara-3.13.2/lib/capybara/rspec/matcher_proxies.rb:15:in `within'
     # ./spec/features/auto_reloads3_request_spec.rb:99:in `block (2 levels) in <top (required)>'

  2) CSV export WiceGrid should export csv
     Failure/Error: expect(page).to have_content('ID;Title;Priority;Status;Project Name;')
       expected #has_content?("ID;Title;Priority;Status;Project Name;") to return true, got false
     # ./spec/features/csv_export_request_spec.rb:11:in `block (2 levels) in <top (required)>'

Finished in 12.96 seconds (files took 2.93 seconds to load)
2 examples, 2 failures

Failed examples:

rspec ./spec/features/auto_reloads3_request_spec.rb:74 # auto reloads 3 WiceGrid should filter by Due Date independantly
rspec ./spec/features/csv_export_request_spec.rb:9 # CSV export WiceGrid should export csv

dima4p avatar May 21 '20 10:05 dima4p

I close this PR, as I did not expect it to appear here.

dima4p avatar Jun 10 '24 16:06 dima4p