Sha256: 23a8f443ec19c37bc4e4ddf8727066c6181128e86da18b03c2a3232c55a4ceb8
Contents?: true
Size: 1.69 KB
Versions: 4
Compression:
Stored size: 1.69 KB
Contents
# encoding: UTF-8 # Copyright 2011-2013 innoQ Deutschland GmbH # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require File.join(File.expand_path(File.dirname(__FILE__)), '../integration_test_helper') require 'database_cleaner' DatabaseCleaner.strategy = :truncation class ClientAugmentationTest < ActionDispatch::IntegrationTest self.use_transactional_fixtures = false setup do @concept = Concept::SKOS::Base.create! Concept::SKOS::Base.create! Capybara.current_driver = Capybara.javascript_driver DatabaseCleaner.start end teardown do DatabaseCleaner.clean Capybara.use_default_driver end test 'dashboard concept overview' do login('administrator') visit dashboard_path(lang: :de) table = page.find('#content table') assert table.has_css?('tr', count: 3) assert table.has_css?('tr.highlightable', count: 2) assert table.has_no_css?('tr.hover') concept_row = table.all('tr')[1] # click row to visit concept page concept_row.trigger('click') sleep 1 # FIXME: load time uri = URI.parse(current_url) uri = '%s?%s' % [uri.path, uri.query] assert_equal concept_path(@concept, published: 0, lang: 'de', format: 'html'), uri end end
Version data entries
4 entries across 4 versions & 1 rubygems