X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0e57453d2b637a3d105d4e3d67031f3915f9d302..0110ce93702def9a641d92d90d5544d4d0adf22b:/apps/workbench/test/integration/search_box_test.rb?ds=inline diff --git a/apps/workbench/test/integration/search_box_test.rb b/apps/workbench/test/integration/search_box_test.rb index 14d28d2adc..1eed15882a 100644 --- a/apps/workbench/test/integration/search_box_test.rb +++ b/apps/workbench/test/integration/search_box_test.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'integration_helper' class SearchBoxTest < ActionDispatch::IntegrationTest @@ -11,8 +15,8 @@ class SearchBoxTest < ActionDispatch::IntegrationTest aproject_uuid = api_fixture('groups')['aproject']['uuid'] # let's search for aproject by uuid within('.navbar-fixed-top') do - page.has_field?('search') - page.find_field('search').set aproject_uuid + page.has_field?('search this site') + page.find_field('search this site').set aproject_uuid page.find('.glyphicon-search').click end @@ -25,7 +29,7 @@ class SearchBoxTest < ActionDispatch::IntegrationTest within('.navbar-fixed-top') do search_for = String.new user['uuid'] search_for[0]='1' - page.find_field('search').set search_for + page.find_field('search this site').set search_for page.find('.glyphicon-search').click end @@ -61,7 +65,7 @@ class SearchBoxTest < ActionDispatch::IntegrationTest within('.navbar-fixed-top') do # search again for the anonymously accessible project - page.find_field('search').set publicly_accessible_project['name'][0,10] + page.find_field('search this site').set publicly_accessible_project['name'][0,10] page.find('.glyphicon-search').click end @@ -80,7 +84,7 @@ class SearchBoxTest < ActionDispatch::IntegrationTest assert page.has_text?(publicly_accessible_project['description']), 'No text - publicly accessible project description' else within('.navbar-fixed-top') do - page.has_no_field?('search') + page.has_no_field?('search this site') end end end