Sha256: f4b384b9d14f0d316762a401d24eae47c6336d1db0c58c30ea467bb46ddc4b12
Contents?: true
Size: 971 Bytes
Versions: 7
Compression:
Stored size: 971 Bytes
Contents
require 'test_helper' require 'integration_test_helper' class EditConceptsTest < ActionDispatch::IntegrationTest setup do @label = Factory(:xllabel) end test "Create a new concept version" do assert @label.published? login('administrator') visit label_path(@label, :lang => 'de', :format => 'html') assert page.has_button?("Neue Version erstellen"), "Button 'Neue Version erstellen' is missing on labels#show" click_link_or_button("Neue Version erstellen") assert_equal edit_label_path(@label, :lang => 'de', :format => 'html'), current_path visit label_path(@label, :lang => 'de', :format => 'html') assert !page.has_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_or_button("Vorschau der Version in Bearbeitung") end end
Version data entries
7 entries across 7 versions & 1 rubygems