Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

post-migration failing tests #1376

Closed
6 of 7 tasks
pgwillia opened this issue Dec 12, 2019 · 2 comments
Closed
6 of 7 tasks

post-migration failing tests #1376

pgwillia opened this issue Dec 12, 2019 · 2 comments
Assignees

Comments

@pgwillia
Copy link
Member

pgwillia commented Dec 12, 2019

Failure:

  • DepositItemTest#test_be_able_to_deposit_and_edit_an_item_successfully [/home/pjenkins/Code/jupiter/test/system/deposit_item_test.rb:117]:
Expected nil to not be nil.
  • ItemEditTest#test_can_edit_item [/home/pjenkins/Code/jupiter/test/system/item_edit_test.rb:56]:
expected to find text "Item Deposit was successful!" in "Skip to Main Content\nSearch\nCollections\nDeposit\nAbout\nJohn Snow\nThis is a test message!\nEdit Item\nStep 1\nDescribe Item\nStep 2\nChoose License and Visibility\nStep 3\nUpload Files\nStep 4\nReview and Deposit Item\nStep 4 of 4\nReview and Update Item\nPlease review your item before depositing into ERA\nEdit\nUpload Files\nera-logo.png\n4.28 KB\nEdit\nChoose License and Visibility\nLicense\nAttribution 4.0 International (CC BY 4.0)\nVisibility\nOpen access (will be seen by everyone)\nEdit\nDescribe Item\nTitle\nBook of Random\nType of Item\nBook\nLanguages\nEnglish\nAuthors/Creators\nJane Doe\nBob Smith\nSubjects/Keywords\nBest Seller\nAdventure\nDate created\n2018-10-24\nDescription or Abstract\nReally random description about this random book\nCommunity and Collection\nFancy Community / Fancy collection\nBy depositing this item into ERA you agree to the ERA Deposit Policy agreements\nPrevious step\nSave\nAbout ERA · Contact Us · Policies · Powered by Jupiter"
  • ItemShowTest#test_Search_faceting_on_item_values_is_not_broken [/home/pjenkins/Code/jupiter/test/system/item_show_test.rb:82]:
expected to find css "a[href='/search?tab=item']" 1 time but there were no matches
  • SearchTest#test_admin_should_be_able_to_filter_the_public_and_private_items [/home/pjenkins/Code/jupiter/test/system/search_test.rb:328]:
expected to find css "a.nav-link.active" but there were no matches
  • SearchTest#test_anybody_should_be_able_to_filter_the_public_items [/home/pjenkins/Code/jupiter/test/system/search_test.rb:118]:
expected to find css "a.nav-link.active" but there were no matches
  • SearchTest#test_anybody_should_be_able_to_sort_results [/home/pjenkins/Code/jupiter/test/system/search_test.rb:277]:
Expected /Fancy Item 0.*Fancy Item 2.*Fancy Item 4.*Fancy Item 6.*Fancy Item 8/m to match "404\nOops! We can't seem to find the page you're looking for.\nMake sure the address is correct and that the page hasn't moved.\nPlease contact ERA Help if you think this is a mistake.\nHome Search Contact Us Go back".
  • SearchTest#test_anybody_should_only_see_some_facet_results_by_default,with_a"show_more"_button [/home/pjenkins/Code/jupiter/test/system/search_test.rb:246]:
expected to find css "div.card-header" but there were no matches
@pgwillia pgwillia self-assigned this Dec 12, 2019
@pgwillia
Copy link
Member Author

ItemEditTest#test_can_edit_item [/home/pjenkins/Code/jupiter/test/system/item_edit_test.rb:56]: continues to flap like crazy. I concur there is something up with selectize_clear_all

@pgwillia
Copy link
Member Author

An example of what test/fixtures/thesis.yml might look like

# used by test/system/search_test.rb
<% (1..5).each do |i| %>
thesis_<%= i %>:
  visibility: <%= JupiterCore::VISIBILITY_PUBLIC %>
  owner: admin
  title: <%= "#{['Fancy', 'Nice'][i % 2]} Thesis #{i}" %>
  dissertant: 'Joe Blow'
  language: <%= CONTROLLED_VOCABULARIES[:language].english %>
  graduation_date: <%= "19#{50 + i}-11-11" %>
<% end %>
<% (1..5).each do |i| %>
private_thesis_<%= i %>:
  visibility: <%= JupiterCore::VISIBILITY_PRIVATE %>
  owner: admin
  title: <%= "#{['Fancy', 'Nice'][i % 2]} Private Thesis #{i + 10}" %>
  dissertant: 'Joe Blow'
  language: <%= CONTROLLED_VOCABULARIES[:language].english %>
  graduation_date: <%= "19#{70 + i}-11-11" %>
<% end %>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant