Commit c3db10d3 authored by Filipa Lacerda's avatar Filipa Lacerda

Removes loading assertions

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