Commit 6b1ea146 authored by Shinya Maeda's avatar Shinya Maeda

Add feature spec for the bug

This commit adds a feature spec
parent b472fd82
......@@ -399,10 +399,12 @@ describe 'Environments page', :js do
describe 'environments folders' do
before do
create(:environment, project: project,
create(:environment, :will_auto_stop,
project: project,
name: 'staging/review-1',
state: :available)
create(:environment, project: project,
create(:environment, :will_auto_stop,
project: project,
name: 'staging/review-2',
state: :available)
end
......@@ -420,6 +422,14 @@ describe 'Environments page', :js do
expect(page).to have_content 'review-1'
expect(page).to have_content 'review-2'
within('.ci-table') do
within('.gl-responsive-table-row:nth-child(3)') do
expect(find('.js-auto-stop').text).not_to be_empty
end
within('.gl-responsive-table-row:nth-child(4)') do
expect(find('.js-auto-stop').text).not_to be_empty
end
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment