Skip to content

Commit b2a6ba6

Browse files
author
Elle Meredith
committed
Add specs to confirm Emojicom rendering
i.e. Emojicom should not be rendered on landing pages
1 parent 7df7371 commit b2a6ba6

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
require "rails_helper"
2+
3+
RSpec.feature "Emojicom rendering" do
4+
context "home page" do
5+
scenario "does not display emojicom widget" do
6+
visit "/docs"
7+
8+
expect(page).not_to have_css "#emojicom-widget-inline"
9+
end
10+
end
11+
12+
context "landing page" do
13+
scenario "does not display emojicom widget" do
14+
visit "/docs/test-analytics"
15+
16+
expect(page).not_to have_css "#emojicom-widget-inline"
17+
end
18+
end
19+
20+
context "standard docs page" do
21+
scenario "displays emojicom widget" do
22+
visit "/docs/tutorials/getting-started"
23+
24+
expect(page).to have_css "#emojicom-widget-inline"
25+
end
26+
end
27+
end

0 commit comments

Comments
 (0)