Commit c3db10d3 authored by Filipa Lacerda's avatar Filipa Lacerda

Removes loading assertions

parent a8508608
......@@ -86,7 +86,7 @@
* Verifies is the given environment has manual actions.
* Used to verify if we should render them or nor.
*
* @returns {Boolean} description
* @returns {Boolean}
*/
hasManualActions() {
return this.$options.hasKey(this.model, 'manual_actions') && this.model.manual_actions.length;
......
......@@ -31,7 +31,6 @@ $(() => {
return fn(item);
}).filter(Boolean);
gl.EnvironmentsListApp = new Vue({
el: '#environments-list-view',
......
......@@ -12,32 +12,14 @@ feature 'Environments', feature: true, js:true do
login_as(user)
project.team << [user, role]
end
describe 'Loading environments' do
given!(:environment) { }
given!(:deployment) { }
given!(:manual) { }
context 'loading environments' do
before do
visit namespace_project_environments_path(project.namespace, project)
end
scenario 'does show loading spinner' do
expect(page).to have_selector('.environments-list-loading')
end
end
end
describe 'when showing environments' do
before do
visit namespace_project_environments_path(project.namespace, project)
wait_for_vue_resource
end
context 'without environments' do
scenario 'does show "Available" and "Stopped" tab with links' do
expect(page).to have_link('Available')
expect(page).to have_link('Stopped')
......
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