Sha256: 89714487f069522a3f2a9417e0f608ec7c7e7a9d7648e0f69e5e03faf5ce186b

Contents?: true

Size: 1.12 KB

Versions: 20

Compression:

Stored size: 1.12 KB

Contents

require File.join(File.expand_path(File.dirname(__FILE__)), '../integration_test_helper')

class EditCollectionsTest < ActionDispatch::IntegrationTest
  setup do
    @collection = Collection::SKOS::Unordered.new.publish.tap { |c| c.save }
  end

  test 'create a new collection version' do
    login('administrator')
    visit collection_path(@collection, lang: 'de', format: 'html')
    assert page.has_button?('Neue Version erstellen'), "Button 'Neue Version erstellen' is missing on concepts#show"
    click_link_or_button('Neue Version erstellen')
    assert_equal edit_collection_url(@collection, published: 0, lang: 'de', format: 'html'), current_url

    visit collection_path(@collection, lang: 'de', format: 'html')
    assert page.has_no_button?('Neue Version erstellen'), "Button 'Neue Version erstellen' although there already is a new version"
    assert page.has_link?('Vorschau der Version in Bearbeitung'), "Link 'Vorschau der Version in Bearbeitung' is missing"
    click_link('Vorschau der Version in Bearbeitung')
    assert_equal collection_url(@collection, published: 0, lang: 'de', format: 'html'), current_url
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
iqvoc-4.14.5 test/integration/edit_collections_test.rb
iqvoc-4.14.4 test/integration/edit_collections_test.rb
iqvoc-4.13.2 test/integration/edit_collections_test.rb
iqvoc-4.13.0 test/integration/edit_collections_test.rb
iqvoc-4.12.1 test/integration/edit_collections_test.rb
iqvoc-4.12.0 test/integration/edit_collections_test.rb
iqvoc-4.11.1 test/integration/edit_collections_test.rb
iqvoc-4.11.0 test/integration/edit_collections_test.rb
iqvoc-4.10.0 test/integration/edit_collections_test.rb
iqvoc-4.9.0 test/integration/edit_collections_test.rb
iqvoc-4.8.2 test/integration/edit_collections_test.rb
iqvoc-4.8.1 test/integration/edit_collections_test.rb
iqvoc-4.8.0 test/integration/edit_collections_test.rb
iqvoc-4.7.0 test/integration/edit_collections_test.rb
iqvoc-4.6.1 test/integration/edit_collections_test.rb
iqvoc-4.5.2 test/integration/edit_collections_test.rb
iqvoc-4.6.0 test/integration/edit_collections_test.rb
iqvoc-4.5.1 test/integration/edit_collections_test.rb
iqvoc-4.5.0 test/integration/edit_collections_test.rb
iqvoc-4.4.0 test/integration/edit_collections_test.rb