Sha256: c3e4d5fc26c44518868493c654e3713f1bdd77c16564691952bfd15bb9729254

Contents?: true

Size: 859 Bytes

Versions: 7

Compression:

Stored size: 859 Bytes

Contents

require 'test_helper'
require 'integration_test_helper'

class DashboardTest < ActionDispatch::IntegrationTest

  setup do
    @label = Factory(:xllabel, :published_at => nil)
  end

  test "labels appearing in dashboard" do
    assert !@label.published?
    login('administrator')

    visit dashboard_path(:lang => 'de', :format => 'html')
    assert page.has_link?(@label.value.to_s), "Couldn't find Label link '#{@label.value.to_s}' in dashboards concepts + labels list"
    click_link_or_button(@label.value.to_s)
    assert_equal label_path(@label, :lang => 'de', :format => 'html'), current_path
  end

  test "new label link in dashboard" do
    login('administrator')

    visit dashboard_path(:lang => 'de', :format => 'html')
    click_link_or_button("de")
    assert_equal new_label_path(:lang => 'de', :format => 'html'), current_path
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
iqvoc_skosxl-2.0.2 test/integration/dashboard_test.rb
iqvoc_skosxl-2.0.1 test/integration/dashboard_test.rb
iqvoc_skosxl-2.0.0 test/integration/dashboard_test.rb
iqvoc_skosxl-1.2.3 test/integration/dashboard_test.rb
iqvoc_skosxl-1.2.2 test/integration/dashboard_test.rb
iqvoc_skosxl-1.2.1 test/integration/dashboard_test.rb
iqvoc_skosxl-1.2.0 test/integration/dashboard_test.rb