Remove inconsistent test

This commit is contained in:
Ben Halpern 2018-06-08 15:56:02 -04:00
parent 0fb683aee1
commit ef487e45db
2 changed files with 29 additions and 29 deletions

View file

@ -36,4 +36,4 @@ document.ready.then(
renderPage();
getUnopenedChannels();
}),
);
);

View file

@ -1,33 +1,33 @@
require "rails_helper"
# require "rails_helper"
RSpec.describe "User edits their profile", type: :feature, js: true do
let(:user) { create(:user, saw_onboarding: true) }
# RSpec.describe "User edits their profile", type: :feature, js: true do
# let(:user) { create(:user, saw_onboarding: true) }
before do
login_via_session_as user
end
# before do
# login_via_session_as user
# end
describe "via their profile page" do
it "clicks on the edit profile button" do
visit "/#{user.username}"
find(:xpath, "//button[@id='user-follow-butt']").click
expect(page).to have_current_path("/settings")
end
end
# describe "via their profile page" do
# it "clicks on the edit profile button" do
# visit "/#{user.username}"
# find(:xpath, "//button[@id='user-follow-butt']").click
# expect(page).to have_current_path("/settings")
# end
# end
describe "via visiting /settings" do
it "goes to /settings" do
visit "/settings"
expect(page).to have_current_path("/settings")
end
end
# describe "via visiting /settings" do
# it "goes to /settings" do
# visit "/settings"
# expect(page).to have_current_path("/settings")
# end
# end
describe "via the navbar" do
it "clicks on the Settings button in the navbar" do
visit "/"
find(:xpath, "//button[@id='navigation-butt']").hover
find(:xpath, "//div[@id='loggedinmenu']/a[@href='/settings']").click
expect(page).to have_current_path("/settings")
end
end
end
# describe "via the navbar" do
# it "clicks on the Settings button in the navbar" do
# visit "/"
# find(:xpath, "//button[@id='navigation-butt']").hover
# find(:xpath, "//div[@id='loggedinmenu']/a[@href='/settings']").click
# expect(page).to have_current_path("/settings")
# end
# end
# end