X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e8db6685b64c6853eb3c5d3ee27ba58168c3c8e8..3cc81d1201ec9abfe818207c450df62232f5bce9:/apps/workbench/test/integration/search_box_test.rb 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