Sha256: fac9df6da18bd6137de57cf2c1818028fcd0e42d945970bfd1f4a76811cac09c

Contents?: true

Size: 815 Bytes

Versions: 4

Compression:

Stored size: 815 Bytes

Contents

require 'rails_helper'

module Pwb
  RSpec.describe "Admin panel", type: :feature, js: true do
    pending "need to figure out why test below fails on travis"

    # before(:all) do
    #   @admin_user = User.create!(email: "user@example.org", password: "very-secret", admin: true)
    # end

    # scenario 'sign in works' do
    #   sign_in_as @admin_user.email, @admin_user.password
    #   # byebug
    #   expect(page).to have_link(nil, href: '/en/admin/properties/new')

    #   # above fails with this error in Travis CI but not locally:
    #   # Failure/Error: expect(page).to have_link(nil, href: '/en/admin/properties/new')
    #   # expected to find link nil with href "/en/admin/properties/new" but there were no matches
    # end


    # after(:all) do
    #   @admin_user.destroy
    # end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pwb-1.4.0 spec/features/pwb/admin_spec.rb
pwb-1.3.0 spec/features/pwb/admin_spec.rb
pwb-1.2.0 spec/features/pwb/admin_spec.rb
pwb-1.1.1 spec/features/pwb/admin_spec.rb