From 9c787039b2887ee5fb3f08ded35746d4e4eecb18 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 Signed-off-by: Chris Cormack Signed-off-by: Lee Jamison Signed-off-by: Marcel de Rooy (cherry picked from commit 8035a467f0b5d8441d4164bc183286d4f2593438) Signed-off-by: Fridolin Somers (cherry picked from commit d5f1aca783390beaf422847d3f01a3f632e37bfe) Signed-off-by: Katrin Fischer --- 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 1f0f15f53c..295005155b 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.39.5