Flaky QA spec in 2_plan/issue/collapse_comments_in_discussions_spec.rb
I tried running this spec locally, and it failed the first time:
Failures: 1) Plan collapse comments in issue discussions user collapses reply for comments in an issue Failure/Error: expect(show_page).to have_content("My first discussion") expected to find text "My first discussion" in "jet.local 99ms / 65 pg 141ms / 5 gitaly profile 127ms / 29 redis 343.73ms / 144 gc issues/1 links realtime_changes 1.json?serializer=sidebar_extras referenced_merge_requests related_branches can_create_branch discussions.json notes realtime_changes Skip to content Projects Groups Activity Milestones Snippets 9 1 26 P project-for-issues-99e4f6d771118617 Project Issues 1 List Boards Labels Milestones Merge Requests 0 CI / CD Operations Packages Wiki Snippets Settings Collapse sidebar gitlab-qa-sandbox-group qa-test-2019-01-03-10-49-26 project-for-issues-99e4f6d771118617 Issues #1 Open Opened 21 seconds ago by Administrator Close issue New issue issue title Related issues 0 👍 0 👎 0 Show all activity Create merge request Write Preview Markdown and quick actions are supported Attach a file Start discussion Close issue Todo Add todo Assignee Edit No assignee - assign yourself Milestone Edit None Time tracking No estimate or time spent Due date Edit No due date Labels Edit None Weight Edit None Confidentiality Edit Not confidential Lock issue Edit Unlocked 1 participant Notifications Reference: gitlab-qa-sandbox-group/qa-test-2019-01-03-10-49-26/project-for-issues-99e4f6d771118617#1 Move issue" # ./qa/specs/features/browser_ui/2_plan/issue/collapse_comments_in_discussions_spec.rb:21:in `block (4 levels) in <module:QA>' # ./qa/scenario/actable.rb:14:in `perform' # ./qa/specs/features/browser_ui/2_plan/issue/collapse_comments_in_discussions_spec.rb:18:in `block (3 levels) in <module:QA>' # ./qa/specs/runner.rb:38:in `perform' # ./qa/scenario/template.rb:8:in `block in perform' # ./qa/scenario/template.rb:6:in `tap' # ./qa/scenario/template.rb:6:in `perform' # ./qa/scenario/template.rb:29:in `perform' # ./qa/scenario/template.rb:8:in `block in perform' # ./qa/scenario/template.rb:6:in `tap' # ./qa/scenario/template.rb:6:in `perform' # ./qa/scenario/bootable.rb:14:in `launch!'
I think the
expect(show_page) needs to wait for the discussion to load.