Revert "Bug 31104: Add a selenium test"

This reverts commit 56d79a483d.
This commit is contained in:
Tomás Cohen Arazi 2022-08-08 11:18:02 -03:00
parent f3eaf43f7b
commit a26211d53d

View file

@ -40,14 +40,14 @@ eval { require Selenium::Remote::Driver; };
if ( $@ ) {
plan skip_all => "Selenium::Remote::Driver is needed for selenium tests.";
} else {
plan tests => 2;
plan tests => 1;
}
my $s = t::lib::Selenium->new;
my $driver = $s->driver;
my $opac_base_url = $s->opac_base_url;
my $base_url = $s->base_url;
my $mainpage = $s->base_url . q|mainpage.pl|;
my $builder = t::lib::TestBuilder->new;
my $schema = Koha::Database->schema;
@ -153,7 +153,6 @@ subtest 'Search patrons' => sub {
my $total_number_of_patrons = Koha::Patrons->search->count;
my $table_id = "memberresultst";
$driver->get($mainpage . q|?logout.x=1|);
$s->auth;
C4::Context->set_preference('DefaultPatronSearchFields',"");
my $PatronsPerPage = 15;
@ -336,19 +335,6 @@ subtest 'Search patrons' => sub {
push @cleanup, $attribute_type, $attribute_type_searchable;
C4::Context->set_preference('DefaultPatronSearchFields',$default_patron_search_fields);
C4::Context->set_preference('PatronsPerPage',$default_patron_per_page);
$driver->quit();
};
subtest 'Error too long' => sub {
plan tests => 1;
$driver->get($mainpage . q|?logout.x=1|);
$s->auth;
my $very_long_string = q{some long test to search in patron fields some long test to search in patron fields some long test to search in patron fields};
$driver->get( $base_url . "/members/members-home.pl" );
$s->fill_form( { search_patron_filter => $very_long_string } );
$s->submit_form;
$s->wait_for_ajax;
ok( 1, "No error when querying a very long search" );
};
$driver->quit();