Flaky spec: "Blob shortcuts > quotes the selected text"
Summary
The test case to verify if pressing R key works for performing quoted replies in issuables is unpredictable and needs to be fixed. The test is located in spec/features/issuables/shortcuts_issuable_spec.rb#L17
Possible root-cause
The problem is likely due to text selection (done via select_element
) and using send_keys
for emulating r
key press used together. The test sometimes passes when sleep 1
is used right after doing .send_keys('r')
but is not guaranteed to pass always.
Edited by Kushal Pandya