* Create .travis.yml * Update .travis.yml * Add postgresql to travis * Change travis's postgresql version * Add chrome addon to travis * Adjust travis config --skip-ci * Change travis dist * Change travis to use Chrome --skip-ci * Use IntegraitonHelpers --skip-ci * Add no-sandbox option to headless chrome * Add sudo to travis * Fix broken spec * Update travis.yml * Change how travis store bundler cache * Update chromedriver command * Add CodeClimate to travis --skip-ci * Remove deadcode --skip-ci * Remove dead code * Change rspec-retry back to 3 * Add deploy script to travis * Safelist only master for Travis --skip-ci
33 lines
957 B
Ruby
33 lines
957 B
Ruby
# require "rails_helper"
|
|
|
|
# RSpec.describe "User edits their profile", type: :feature, js: true do
|
|
# let(:user) { create(:user, saw_onboarding: true) }
|
|
|
|
# before do
|
|
# sign_in 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 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
|