Skip to content

Commit e445206

Browse files
committed
Adapt tests to new localization
1 parent fb1a290 commit e445206

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/components/primer/open_project/danger_dialog_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def test_renders_default_button_text
5050
end
5151

5252
assert_selector("dialog.DangerDialog") do
53-
assert_selector(".Overlay-footer .Button", text: "en.button_cancel")
54-
assert_selector(".Overlay-footer .Button", text: "en.button_delete")
53+
assert_selector(".Overlay-footer .Button", text: "Cancel")
54+
assert_selector(".Overlay-footer .Button", text: "Delete")
5555
end
5656
end
5757

@@ -97,8 +97,8 @@ def test_renders_with_confirmation_check_box_button_text
9797
end
9898

9999
assert_selector("dialog.DangerDialog") do
100-
assert_selector(".Overlay-footer .Button", text: "en.button_cancel")
101-
assert_selector(".Overlay-footer .Button", text: "en.button_delete_permanently")
100+
assert_selector(".Overlay-footer .Button", text: "Cancel")
101+
assert_selector(".Overlay-footer .Button", text: "Delete permanently")
102102
end
103103
end
104104

0 commit comments

Comments
 (0)