Welcome to mirror list, hosted at ThFree Co, Russian Federation.

show.html.haml_spec.rb « welcome « registrations « views « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b652defbd1f732756713b8a0a552078f6dc101e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'registrations/welcome/show', feature_category: :onboarding do
  let_it_be(:user) { create(:user) }

  before do
    allow(view).to receive(:onboarding_status).and_return(Onboarding::Status.new({}, {}, user))
    allow(view).to receive(:current_user).and_return(user)
    allow(view).to receive(:welcome_update_params).and_return({})

    render
  end

  subject { rendered }

  it { is_expected.not_to have_selector('label[for="user_setup_for_company"]') }
  it { is_expected.to have_button('Get started!') }
end