We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bf3021 commit c379d34Copy full SHA for c379d34
1 file changed
spec/system/keyboard_shortcuts_spec.rb
@@ -23,6 +23,8 @@
23
24
it "approves the commit" do
25
topic_page.visit_topic(topic)
26
+ expect(page).to have_css("#site-logo")
27
+
28
send_keys("y")
29
expect(page).to have_current_path("/")
30
expect(tags).to include("approved")
@@ -34,6 +36,8 @@
34
36
35
37
it "does nothing" do
38
39
40
41
expect { send_keys("y") }.not_to change { topic.reload.tags.pluck(:name) }
42
expect(page).to have_current_path("/t/#{topic.slug}/#{topic.id}")
43
end
@@ -44,6 +48,8 @@
44
48
45
49
46
50
51
52
47
53
54
expect(tags).not_to include("approved")
55
0 commit comments