# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'User sees feature flag user list details', :js do
  let_it_be(:project) { create(:project) }
  let_it_be(:developer) { create(:user) }

  before do
    project.add_developer(developer)
    stub_licensed_features(feature_flags: true)
    sign_in(developer)
  end

  it 'displays the list name' do
    list = create(:operations_feature_flag_user_list, project: project, name: 'My List')

    visit(project_feature_flags_user_list_path(project, list))

    expect(page).to have_text('My List')
  end
end
