Skip to content

Commit ecd5b6b

Browse files
committed
Adapt tests
1 parent d2faef8 commit ecd5b6b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/api/spec/features/webui/canned_responses_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
within('#canned-responses') do
2323
expect(page).to have_css('.card-header', text: 'wow')
2424
expect(page).to have_css('.card-body', text: 'a canned response')
25+
expect(page).to have_css('.list-group-item.py-4', text: "Decision's reason: Undefined")
2526
end
2627
end
2728
end
@@ -89,8 +90,8 @@
8990
it do
9091
within('#canned-responses') do
9192
expect(page).to have_css('.card-header', text: 'wow')
92-
expect(page).to have_css('.card-body', text: "Decision's reason:")
93-
expect(page).to have_css('.card-body', text: 'Favored')
93+
expect(page).to have_css('.card-body', text: "a decision-related canned response")
94+
expect(page).to have_css('.list-group-item.py-4 h5', text: 'Favored')
9495
end
9596
end
9697
end

0 commit comments

Comments
 (0)