From 9dcf80c043ee8bfb3c92700029163981fff2296e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Verg=C3=A9s?= Date: Wed, 18 Dec 2024 10:31:12 +0100 Subject: [PATCH] basic spec --- spec/system/homepage_spec.rb | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/spec/system/homepage_spec.rb b/spec/system/homepage_spec.rb index ab6617d..765176a 100644 --- a/spec/system/homepage_spec.rb +++ b/spec/system/homepage_spec.rb @@ -6,13 +6,6 @@ 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 @@ -20,11 +13,4 @@ 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