Project

General

Profile

action #117949

Updated by geor over 1 year ago

### Motivation 
 Occasionally, the screen on a YaST Qt window does not refresh properly ([bsc#1204176](https://bugzilla.suse.com/show_bug.cgi?id=1204176)). [bsc#1204176](https://bugzilla.suse.com/show_bug.cgi?id=1204176). This leads to failures like [this one](https://openqa.suse.de/tests/9681079#step/iscsi_client/52) where content from the previous screen is still visible in the new screen, and [this one](https://openqa.suse.de/tests/9680782#step/yast2_control_center/96) where the content does not fully load. 
 A workaround is to hit `shift-F3` twice to bring up the style sheet selection and close it again. This forces a refresh on the YaST screen, as seen [here](https://bugzilla.suse.com/attachment.cgi?id=862070). 
 We should apply this workaround to all affected areas. 

 ### Scope 
 The workaround should be applied for 15-SP5, all archs. 
 Concerning which areas of the code would be affected, check the **Suggestion** section. 

 ### Acceptance criteria 
 **AC1**: Add a workaround (hitting `shift-f3` to open and close the style menu) to force a refresh on the YaST Qt window. 
 **AC2**: Make sure to record a soft failure, above the workaround, mentioning the **new** bug `bsc#1204176` as the reason for the workaround. 

 ### Suggestion 
 We used to apply a similar workaround where we would send `alt-F10` multiple times (actually, an *even number* of times), which would maximize and unmaximize the window, forcing a screen refresh. 
 The workaround was removed with [this PR](https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/15585/files) when a fix was added to the new 15-SP5 builds. 
 However this fix seems to not fully remove the refresh issue. 
 The suggestion here is to check this PR to view in which areas of the code to introduce the `shift-F3` workaround. 
 So for instance we could re-introduce at the same areas a `send_key_until_needlematch` but this time with `shift-F3`.

Back