Project

General

Profile

action #137195

Updated by rainerkoenig about 1 year ago

### ## Observation 

 Seems to be one more case where the yastbootloader change hits us: 

 Not Found 
 { "error" : "Widget not found" } 

 The widget tree was slightly changed in yast2-bootloader 5.x to accommodate more bootloaders than just grub2 


 openQA test in scenario opensuse-Tumbleweed-DVD-x86_64-yast2_gui@64bit fails in 
 [bootcode_options](https://openqa.opensuse.org/tests/3604637/modules/bootcode_options/steps/17) 

 ### Additional information ## Test suite description 
 Maintainer: qsf-y 

 The problem is caused by renaming Test for yast2 UI, GUI only. Running on created gnome images which provides both text console for ncurses UI tests as well as the widget IDs in `grub2_widgets_test.rb` in [this PR](https://github.com/yast/yast-bootloader/pull/686/files#diff-69a55b082722d9fec3b163590f6d073439ac02dafda4c1907603dd9daa6e3e41) gnome environment for the GUI tests. 

 Temporarily added YAST2_GUI_TERMINATE_PREVIOUS_INSTANCES to see if helps. This still affects our tests that rely on the old Widget Ids. variable triggers code which terminates all yast2 processes before starting new one. (see poo#26104). 


 ## Reproducible 

 Affected IDs are: 
 ~~~  
 lib/YaST/Bootloader/BootCodeOptionsPage.pm:      $self->{chb_set_active_flag} = $self->{app}->checkbox({id => '"Bootloader::ActivateWidget"'}); 
 lib/YaST/Bootloader/BootCodeOptionsPage.pm:      $self->{chb_generic_to_mbr} = $self->{app}->checkbox({id => '"Bootloader::GenericMBRWidget"'}); 
 lib/YaST/Bootloader/BootCodeOptionsPage.pm:      $self->{cmb_mbr_flag} = $self->{app}->combobox({id => '"Bootloader::PMBRWidget"'}); 
 lib/YaST/Bootloader/BootCodeOptionsPage.pm:      $self->{chb_trusted_boot} = $self->{app}->checkbox({id => '"Bootloader::TrustedBootWidget"'}); Fails since (at least) Build [20211008](https://openqa.opensuse.org/tests/1962065) 


 ## Expected result 

 lib/YaST/Bootloader/KernelParametersPage.pm:      $self->{txb_opt_kernel_param} = $self->{app}->textbox({id => "\"Bootloader::KernelAppendWidget\""}); 
 ~~~ Last good: (unknown) (or more recent) 


 ## Further details 

 ### ToDo 

 Replace the old IDs that won't work Always latest result in newer YaST versions with a regex that matches both the old or new version. You can take [PR 17878](https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/17878) as an example.  

 ### Acceptance criteria: 

 **AC1:** Changed IDs that affect our code are replaced by regex code that matches both new and old IDs. this scenario: [latest](https://openqa.opensuse.org/tests/latest?arch=x86_64&distri=opensuse&flavor=DVD&machine=64bit&test=yast2_gui&version=Tumbleweed) 

Back