Skip to content

Commit e52635f

Browse files
precillapPrecilla Prempehleefaisonr
authored
Create Space Ghost system spec and allow users to see project request wizard link (#1876)
* Created a Space Ghost system spec and tested that a user can see the project request wizard button Co-authored-by: Bess Sadler <[email protected]> Co-authored-by: Robert-Anthony Lee-Faison <[email protected]> * ran rubocop and removed byebug * turned feature flipper off at the end of the test --------- Co-authored-by: Precilla Prempeh <[email protected]> Co-authored-by: Robert-Anthony Lee-Faison <[email protected]>
1 parent 7cee9af commit e52635f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

spec/system/space_ghost_spec.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# frozen_string_literal: true
2+
3+
require "rails_helper"
4+
require "open-uri"
5+
6+
RSpec.describe "The Space Ghost Epic", connect_to_mediaflux: true, js: true, integration: true do
7+
context "user" do
8+
let(:user) { FactoryBot.create(:user, uid: "pul123", mediaflux_session: SystemUser.mediaflux_session) }
9+
it "displays the new project wizard on the dashboard" do
10+
test_strategy = Flipflop::FeatureSet.current.test!
11+
test_strategy.switch!(:allow_all_users_wizard_access, true)
12+
sign_in user
13+
visit "/"
14+
expect(page).to have_content("Welcome, #{user.given_name}!")
15+
test_strategy.switch!(:allow_all_users_wizard_access, false)
16+
end
17+
end
18+
end

0 commit comments

Comments
 (0)