From d37d4b56c82273aafa78a3d9b916f075dfd9c6b0 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 14 Jun 2017 13:08:43 -0300 Subject: [PATCH] Bug 18804: (bug 13501 follow-up) Fix add item form (select2) Hard to say here, select2 adds so many elements that we need to ignore. Here we just assume that input text with an id starting with tag_952_subfield must be filled --- t/db_dependent/selenium/basic_workflow.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/db_dependent/selenium/basic_workflow.t b/t/db_dependent/selenium/basic_workflow.t index 945a442..5749e2f 100644 --- a/t/db_dependent/selenium/basic_workflow.t +++ b/t/db_dependent/selenium/basic_workflow.t @@ -126,6 +126,10 @@ SKIP: { my $inputs = $driver->find_child_elements($form, '//input[@type="text"]'); for my $input ( @$inputs ) { next if $input->is_hidden(); + + my $id = $input->get_attribute('id'); + next unless $id =~ m|^tag_952_subfield|; + $input->send_keys('t_value_bib'.$biblionumber); } -- 2.1.4