Skip to content

Commit

Permalink
basic spec
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed Dec 18, 2024
1 parent 25394ac commit 9dcf80c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions spec/system/homepage_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,11 @@
let!(:organization) { create(:organization) }

before do
organization.update(
twitter_handler: "twitter_handler",
facebook_handler: "facebook_handler",
youtube_handler: "youtube_handler",
github_handler: "github_handler"
)

switch_to_host(organization.host)
visit decidim.root_path
end

it "includes the platform name in the footer" do
expect(page).to have_content("Decidim")
end

it "includes the links to social networks" do
expect(page).to have_xpath("//a[@href = 'https://twitter.com/twitter_handler']")
expect(page).to have_xpath("//a[@href = 'https://www.facebook.com/facebook_handler']")
expect(page).to have_xpath("//a[@href = 'https://www.youtube.com/youtube_handler']")
expect(page).to have_xpath("//a[@href = 'https://www.github.com/github_handler']")
end
end

0 comments on commit 9dcf80c

Please sign in to comment.