[functional][u] test fails in gnucash - gnucash not closed
#3 Updated by okurz about 3 years ago
- Subject changed from test fails in gnucash - gnucash not closed to [functional][u] test fails in gnucash - gnucash not closed
- Due date set to 2018-09-25
- Status changed from New to Workable
- Assignee set to SLindoMansilla
- Priority changed from Normal to High
- Target version set to Milestone 19
@SLindoMansilla please check if this is still an issue or resolved with your work on #38387
#5 Updated by SLindoMansilla about 3 years ago
The problem doesn't have to do with my changes, since the problem is that the main window of gnucash doesn't get the focus after closing the help window.
There is a post handling on a for loop to be sure that gnucash is closed. It detects the window open and sends ctrl-q
After that the popup confirmation is detected and alt-w is sent
the loop iterates faster than the display is refreshing causing a race condition, the popup is detected again and alt-w is sent, causing the window bar menu to open
Causing a fail.
Here is needed a sync point after each post handling event to avoid race conditions.
#9 Updated by mlin7442 about 3 years ago
TW's gnucash does not show up 'saving window' after clicked close button in case have had empty content https://openqa.opensuse.org/tests/753777#step/gnucash/24 , I think the differ of behavior is depend on gnucash's version in this case, we should check whether 'saving window' appear. For the time being I created workaround needle below, those are just click on desktop actually, we can clean them up once we have a proper fix.
#10 Updated by okurz about 3 years ago
#11 Updated by SLindoMansilla about 3 years ago
- Status changed from Feedback to In Progress
#15 Updated by SLindoMansilla about 3 years ago
PR merged: https://progress.opensuse.org/issues/41228
Waiting for verification run on OSD: https://openqa.opensuse.org/tests/overview?build=gnucash_poo40319
#16 Updated by SLindoMansilla about 3 years ago
- Status changed from Feedback to Resolved
Verified on OSD: https://openqa.opensuse.org/tests/overview?build=gnucash_poo40319
P.D.: Maintenance tests for gnucash on Leap 42.3 may still need needles.
#17 Updated by SLindoMansilla about 3 years ago
If gnucash fails again, check if it is problem of ensure_installed, and reuse this PR: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/5830