Project

General

Profile

Actions

action #128153

closed

[sporadic] typing issue in comments UI test t/15-comments.t size:M

Added by mkittler over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Observation

Basically #121042 happened again:

[08:06:15] t/ui/15-comments.t ......................... 12/? executeScript: unexpected alert open: {Alert text : The comment text mustn't be empty.} at /home/squamata/project/t/ui/../lib/OpenQA/SeleniumTest.pm:81 at /home/squamata/project/t/ui/../lib/OpenQA/SeleniumTest.pm line 84.
    OpenQA::SeleniumTest::__ANON__(Test::Selenium::Chrome=HASH(0x55fd9e4ed3f0), "Error while executing command: executeScript: unexpected aler"..., HASH(0x55fd9e8b0e68), HASH(0x55fd9e8b4598)) called at /usr/lib/perl5/vendor_perl/5.26.1/Selenium/Remote/Driver.pm line 356
    Selenium::Remote::Driver::catch {...} ("Error while executing command: executeScript: unexpected aler"...) called at /usr/lib/perl5/vendor_perl/5.26.1/Try/Tiny.pm line 123
    Try::Tiny::try(CODE(0x55fd9e8b45b0), Try::Tiny::Catch=REF(0x55fd9e8cb4e8)) called at /usr/lib/perl5/vendor_perl/5.26.1/Selenium/Remote/Driver.pm line 361
    Selenium::Remote::Driver::__ANON__(CODE(0x55fd9e16d058), Test::Selenium::Chrome=HASH(0x55fd9e4ed3f0), HASH(0x55fd9e8b0e68), HASH(0x55fd9e8b4598)) called at (eval 1716)[/usr/lib/perl5/vendor_perl/5.26.1/Class/Method/Modifiers.pm:89] line 1
    Selenium::Remote::Driver::__ANON__(Test::Selenium::Chrome=HASH(0x55fd9e4ed3f0), HASH(0x55fd9e8b0e68), HASH(0x55fd9e8b4598)) called at (eval 1718)[/usr/lib/perl5/vendor_perl/5.26.1/Class/Method/Modifiers.pm:148] line 2
    Selenium::Remote::Driver::_execute_command(Test::Selenium::Chrome=HASH(0x55fd9e4ed3f0), HASH(0x55fd9e8b0e68), HASH(0x55fd9e8b4598)) called at /usr/lib/perl5/vendor_perl/5.26.1/Selenium/Remote/Driver.pm line 1053
    Selenium::Remote::Driver::execute_script(Test::Selenium::Chrome=HASH(0x55fd9e4ed3f0), "return window.jQuery \x{26}\x{26} jQuery.active === 0") called at /home/squamata/project/t/ui/../lib/OpenQA/SeleniumTest.pm line 163
    OpenQA::SeleniumTest::wait_for_ajax("msg", "comment with pinning for group added by regular user") called at t/ui/15-comments.t line 500
    main::__ANON__() called at /usr/lib/perl5/5.26.1/Test/Builder.pm line 309
    eval {...} called at /usr/lib/perl5/5.26.1/Test/Builder.pm line 309
    Test::Builder::subtest(Test::Builder=HASH(0x55fd91d79ba0), "group overview: /group_overview/1001", CODE(0x55fd9e8c7f00)) called at /usr/lib/perl5/5.26.1/Test/More.pm line 807
    Test::More::subtest("group overview: /group_overview/1001", CODE(0x55fd9e8c7f00)) called at t/ui/15-comments.t line 513
    main::__ANON__() called at /usr/lib/perl5/5.26.1/Test/Builder.pm line 309
    eval {...} called at /usr/lib/perl5/5.26.1/Test/Builder.pm line 309
    Test::Builder::subtest(Test::Builder=HASH(0x55fd91d79ba0), "editing when logged in as regular user", CODE(0x55fd9e88d808)) called at /usr/lib/perl5/5.26.1/Test/More.pm line 807
    Test::More::subtest("editing when logged in as regular user", CODE(0x55fd9e88d808)) called at t/ui/15-comments.t line 514

This is not the first time we've seen this issue. However, one can still say it happens only very rarely.

Acceptance criteria

  • AC1: Sporadic issue no longer appears

Suggestions

  • Use Circle CI ssh feature to debug (since it has not been replicated locally)
  • Ponder over the code/test again
  • Add a retry (one could consider this test as "unable" like we already do for some other tests or add the retry within the relevant section of the test itself)

Files

15-comments.pl (13.5 KB) 15-comments.pl mkittler, 2022-11-28 12:58
15-comments.pl (13.4 KB) 15-comments.pl mkittler, 2023-04-21 10:31

Related issues 2 (0 open2 closed)

Related to openQA Project (public) - action #111542: [sporadic] openQA test t/ui/15-comments.t fails in 'heading text' size:MResolvedmkittler2022-05-24

Actions
Copied from openQA Project (public) - action #121042: [sporadic] typing issue in comments UI test size:MResolvedkraih2022-11-282023-01-27

Actions
Actions

Also available in: Atom PDF