diff options
Diffstat (limited to 'spec/features/projects/cluster_agents_spec.rb')
-rw-r--r-- | spec/features/projects/cluster_agents_spec.rb | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/spec/features/projects/cluster_agents_spec.rb b/spec/features/projects/cluster_agents_spec.rb index 3ef710169f0..4018ef2abc9 100644 --- a/spec/features/projects/cluster_agents_spec.rb +++ b/spec/features/projects/cluster_agents_spec.rb @@ -22,7 +22,7 @@ RSpec.describe 'ClusterAgents', :js do end it 'displays empty state', :aggregate_failures do - expect(page).to have_content('Install new Agent') + expect(page).to have_content('Install a new agent') expect(page).to have_selector('.empty-state') end end @@ -44,8 +44,17 @@ RSpec.describe 'ClusterAgents', :js do visit project_cluster_agent_path(project, agent.name) end - it 'displays agent and token information', :aggregate_failures do + it 'displays agent information', :aggregate_failures do expect(page).to have_content(agent.name) + end + + it 'displays agent activity tab', :aggregate_failures do + expect(page).to have_content('Activity') + end + + it 'displays agent tokens tab', :aggregate_failures do + expect(page).to have_content('Access tokens') + click_link 'Access tokens' expect(page).to have_content(token.description) end end |