Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.6:testing
obs-server
obs-server-2.6.6-0009-webui-fixes-for-new-capyb...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File obs-server-2.6.6-0009-webui-fixes-for-new-capybara.patch of Package obs-server
From 1e3f210c6bcd833d09c872112fbfca31bcb0a891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= <adrian@suse.de> Date: Tue, 24 Mar 2015 13:06:59 +0100 Subject: [PATCH 9/9] [webui] fixes for new capybara --- src/api/test/functional/webui/add_repo_test.rb | 2 +- src/api/test/functional/webui/apidocs_controller_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/test/functional/webui/add_repo_test.rb b/src/api/test/functional/webui/add_repo_test.rb index 6146b74..45d5a13 100644 --- a/src/api/test/functional/webui/add_repo_test.rb +++ b/src/api/test/functional/webui/add_repo_test.rb @@ -24,7 +24,7 @@ class Webui::AddRepoTest < Webui::IntegrationTest visit project_meta_path(project: 'home:Iggy') page.must_have_selector('.editor', visible: false) - xml = Xmlhash.parse(first('.editor', visible: false).text) + xml = Xmlhash.parse(first('.editor', visible: false).value) assert_equal([{"name"=>"images", "arch"=> %w(x86_64 i586) }, {"name"=>"Base_repo", "path"=>{"project"=>"BaseDistro2.0", "repository"=>"BaseDistro2_repo"}, "arch"=> %w(x86_64 i586) }, diff --git a/src/api/test/functional/webui/apidocs_controller_test.rb b/src/api/test/functional/webui/apidocs_controller_test.rb index d8f04b3..fdd7bb7 100644 --- a/src/api/test/functional/webui/apidocs_controller_test.rb +++ b/src/api/test/functional/webui/apidocs_controller_test.rb @@ -5,7 +5,7 @@ class Webui::ApidocsControllerTest < Webui::IntegrationTest def test_index # test relative links visit apidocs_path - first('.request').find(:link, 'Example').click + page.first('a', :text => 'Example').click assert page.source =~ %r{<title>Open Build Service API</title>} end -- 2.1.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor