Bugzilla – Attachment 137619 Details for
Bug 31139
basic_workflow.t is failing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31139: Fix basic_workflow.t
Bug-31139-Fix-basicworkflowt.patch (text/plain), 2.00 KB, created by
David Nind
on 2022-07-12 11:25:39 UTC
(
hide
)
Description:
Bug 31139: Fix basic_workflow.t
Filename:
MIME Type:
Creator:
David Nind
Created:
2022-07-12 11:25:39 UTC
Size:
2.00 KB
patch
obsolete
>From 775c74f24ec2ae79c0e9f5e310defa9a6ad16ac4 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 <input id="tag_952_subfield_w_810691" class="input_marceditor items.replacementpricedate noEnterSubmit flatpickr-input" name="items.replacementpricedate" type="hidden"> 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 <david@davidnind.com> >--- > 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.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31139
:
137614
|
137619
|
137739