From e59746277c0e12b7503dd62596a1989289fa4ede Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 12 Jul 2022 11:30:55 +0200 Subject: [PATCH] Bug 31139: Fix basic_workflow.t Error while executing command: element not interactable: Element is not reachable by keyboard at /usr/share/perl5/Selenium/Remote/Driver.pm line 411. Not sure if it's coming from bug 30717 or not. git bisect told me it was the culprit but we released 22.05 and it seems that we got basic_workflow.t green since then. Signed-off-by: David Nind Signed-off-by: Victor Grousset/tuxayo --- t/db_dependent/selenium/basic_workflow.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/selenium/basic_workflow.t b/t/db_dependent/selenium/basic_workflow.t index 58d0fa3c85..de44740828 100755 --- a/t/db_dependent/selenium/basic_workflow.t +++ b/t/db_dependent/selenium/basic_workflow.t @@ -183,6 +183,7 @@ SKIP: { my $id = $input->get_attribute('id'); next unless $id =~ m|^tag_952_subfield|; + my $effective_input = $input; my $v; # FIXME This is based on default values @@ -201,6 +202,7 @@ SKIP: { $id =~ m|^tag_952_subfield_w| # replacementpricedate ) { $v = strftime("%Y-%m-%d", localtime); + $effective_input = $driver->find_element('//div[@id="subfield952w"]/input[@class="input_marceditor flatpickr-input"]'); } elsif ( $id =~ m|^tag_952_subfield_d| # dateaccessioned @@ -215,7 +217,7 @@ SKIP: { else { $v = 't_value_bib' . $biblionumber; } - $input->send_keys( $v ); + $effective_input->send_keys( $v ); } $driver->find_element('//input[@name="add_submit"]')->click; -- 2.37.0