debian-mirror-gitlab/spec/features/projects/clusters/eks_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
949 B
Ruby
Raw Normal View History

2019-12-21 20:55:43 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-06-23 00:09:42 +05:30
RSpec.describe 'AWS EKS Cluster', :js do
2019-12-21 20:55:43 +05:30
let(:project) { create(:project) }
let(:user) { create(:user) }
before do
project.add_maintainer(user)
gitlab_sign_in(user)
allow(Projects::ClustersController).to receive(:STATUS_POLLING_INTERVAL) { 100 }
2019-12-26 22:10:19 +05:30
stub_application_setting(eks_integration_enabled: true)
2019-12-21 20:55:43 +05:30
end
context 'when user does not have a cluster and visits cluster index page' do
let(:project_id) { 'test-project-1234' }
before do
visit project_clusters_path(project)
2022-05-07 20:08:51 +05:30
click_button(class: 'dropdown-toggle-split')
2022-06-21 17:19:12 +05:30
click_link 'Create a cluster (certificate - deprecated)'
2019-12-21 20:55:43 +05:30
end
context 'when user creates a cluster on AWS EKS' do
before do
click_link 'Amazon EKS'
end
2020-03-13 15:44:24 +05:30
it 'highlights Amazon EKS logo' do
expect(page).to have_css('.js-create-aws-cluster-button.active')
end
2019-12-21 20:55:43 +05:30
end
end
end