Fix intermittent failure on account note system spec (#34295)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2025-03-27 15:09:09 +00:00
1 parent ef879a532f
commit 0479efdbb6
1 file changed
+4 -2
+4 -2
View File
@@ -24,8 +24,10 @@ RSpec.describe 'Account notes', :inline_jobs, :js, :streaming do
# The easiest way is to send ctrl+enter ourselves
find_field(class: 'account__header__account-note__content').send_keys [:control, :enter]
expect(page)
.to have_css('.account__header__account-note .inline-alert', text: 'SAVED')
within('.account__header__account-note .inline-alert') do
expect(page)
.to have_content('SAVED')
end
expect(page)
.to have_css('.account__header__account-note__content', text: note_text)