client icon indicating copy to clipboard operation
client copied to clipboard

[QA] Sometimes some GUI tests fail with xfce login window

Open saw-jan opened this issue 1 year ago • 10 comments

Pre-submission Checks

  • [X] I checked for similar issues, but could not find any. I also checked the closed issues. I could not contribute additional information to any existing issue.
  • [X] I will take the time to fill in all the required fields. I know that the bug report may be dismissed otherwise due to lack of information.

Describe the QA issue

While running GUI tests, some tests fails and the screenshots of those test failures has xfce login window.

Steps to reproduce the issue

Run GUI tests in CI

Screenshots

logging_out

Failed Scenarios:

  • logging out
  • simple sharing of a file by public link with default expiration date
  • simple sharing of a file by public link with password and expiration date.png
  • simple sharing of file and folder by public link with expiration date.png

NOTE: We need to figure out whether the above tests failed due to this login window or not.

Similar issues

  • https://github.com/owncloud/client/issues/9856

saw-jan avatar Jul 25 '22 11:07 saw-jan

Failed Scenario: logging out GUI report: ss

Server log: logging_out.log

Scenario: Expiration related GUI report: dc-exp-dui-report dc-ss-exp-lookup

saw-jan avatar Jul 25 '22 11:07 saw-jan

Reoccured again:

Scenario failed:

  • logging out
  • simple sharing of file and folder by public link with expiration date
  • simple sharing of file by public link with password and expiration date

Screenshots

Screenshot

image

Screenshot

image

Screenshot

image

amrita-shrestha avatar Jul 26 '22 06:07 amrita-shrestha

@amrita-shrestha @sushmita56 any tests that fail with this issue, please, report here. And close existing issues related to this.

saw-jan avatar Jul 26 '22 07:07 saw-jan

That appears to be the system login screen? And ah yes thats exactly what this issue is about 🙈

TheOneRing avatar Jul 26 '22 07:07 TheOneRing

I suspect, this is also related with https://github.com/owncloud/client/issues/9952 Authentication-popup is mainly caused by gnome-keyring-daemon

saw-jan avatar Jul 27 '22 04:07 saw-jan

Not sure if this scenario failed due to this issue or not. Scenario: try to self-share a file/folder Server log: serverlog.log

Screenshot

image

amrita-shrestha avatar Jul 27 '22 05:07 amrita-shrestha

It appears that no user is logged in, if no user is logged in the keychain(password storage backend) can be unavailable. As only some tests fail, I have to think on auto log out after x min of inactivity.

Maybe use https://manpages.ubuntu.com/manpages/bionic/man1/caffeinate.1.html ?

TheOneRing avatar Jul 27 '22 06:07 TheOneRing

It appears that no user is logged in, if no user is logged in the keychain(password storage backend) can be unavailable. As only some tests fail, I have to think on auto log out after x min of inactivity.

Maybe use https://manpages.ubuntu.com/manpages/bionic/man1/caffeinate.1.html ?

So, I guess, this should be implemented in squish docker image while running squishrunner command.

saw-jan avatar Jul 27 '22 08:07 saw-jan

So, I guess, this should be implemented in squish docker image while running squishrunner command.

Instead of using caffeinate, we came into the conclusion that disabling auto-lock would be the best approach for CI.

saw-jan avatar Aug 01 '22 11:08 saw-jan

The possible fix PR has been merged but could not test this behavior due to the new issue. Blocked until https://github.com/owncloud-ci/squish/issues/34

saw-jan avatar Aug 04 '22 04:08 saw-jan

Must be fixed by this PR https://github.com/owncloud/client/pull/10046

saw-jan avatar Sep 06 '22 09:09 saw-jan