Bugzilla – Attachment 181498 Details for
Bug 39745
Wrong system preference 'language' in test suite
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39745: Fix wrong system preference 'language' in test suite (selenium)
Bug-39745-Fix-wrong-system-preference-language-in-.patch (text/plain), 2.12 KB, created by
Fridolin Somers
on 2025-04-25 09:43:21 UTC
(
hide
)
Description:
Bug 39745: Fix wrong system preference 'language' in test suite (selenium)
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2025-04-25 09:43:21 UTC
Size:
2.12 KB
patch
obsolete
>From 1c1143262c5810a4bc3e93e913642bfb227c040d Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Fri, 25 Apr 2025 11:07:20 +0200 >Subject: [PATCH] Bug 39745: Fix wrong system preference 'language' in test > suite (selenium) > >Bug 27490 renamed system preference language to StaffInterfaceLanguages. >Needs to be done in test suite selenium tests. > >Also fixes 'opaclanguages' case to 'OPACLanguages' >just to match the file installer/data/mysql/mandatory/sysprefs.sql > >Test by running selenium tests onboarding and installation >--- > t/db_dependent/selenium/00-onboarding.t | 4 ++-- > t/db_dependent/selenium/01-installation.t | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/t/db_dependent/selenium/00-onboarding.t b/t/db_dependent/selenium/00-onboarding.t >index 8cad7a86dc..00bbd43da5 100755 >--- a/t/db_dependent/selenium/00-onboarding.t >+++ b/t/db_dependent/selenium/00-onboarding.t >@@ -172,8 +172,8 @@ SKIP: { > $s->submit_form; > > # Get the interface in the correct language >- C4::Context->set_preference( 'language', $languages->{$lang} ); >- C4::Context->set_preference( 'opaclanguages', $languages->{$lang} ); >+ C4::Context->set_preference( 'StaffInterfaceLanguages', $languages->{$lang} ); >+ C4::Context->set_preference( 'OPACLanguages', $languages->{$lang} ); > > $s->click( { href => '/mainpage.pl', main => 'onboarding-step5' } ); > >diff --git a/t/db_dependent/selenium/01-installation.t b/t/db_dependent/selenium/01-installation.t >index 7f0bc02690..c30be9378c 100755 >--- a/t/db_dependent/selenium/01-installation.t >+++ b/t/db_dependent/selenium/01-installation.t >@@ -155,8 +155,8 @@ SKIP: { > $s->submit_form; > > # Get the interface in the correct language >- C4::Context->set_preference( 'language', $languages->{$lang} ); >- C4::Context->set_preference( 'opaclanguages', $languages->{$lang} ); >+ C4::Context->set_preference( 'StaffInterfaceLanguages', $languages->{$lang} ); >+ C4::Context->set_preference( 'OPACLanguages', $languages->{$lang} ); > > $s->click( { href => '/mainpage.pl', main => 'onboarding-step5' } ); > >-- >2.43.0
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 39745
:
181494
|
181498
|
181499
|
181551
|
181552
|
182103
|
182104