Commit ba43cbe7 authored by George Tsiolis's avatar George Tsiolis

Update envirnoment table and environment folder view spec

parent a979bbe3
...@@ -54,9 +54,7 @@ describe('Environment table', () => { ...@@ -54,9 +54,7 @@ describe('Environment table', () => {
}); });
expect(vm.$el.querySelector('.js-deploy-board-row')).toBeDefined(); expect(vm.$el.querySelector('.js-deploy-board-row')).toBeDefined();
expect( expect(vm.$el.querySelector('.deploy-board-icon.ic-chevron-right')).not.toBeNull();
vm.$el.querySelector('.deploy-board-icon i').classList.contains('fa-caret-right'),
).toEqual(true);
}); });
it('should toggle deploy board visibility when arrow is clicked', () => { it('should toggle deploy board visibility when arrow is clicked', () => {
......
...@@ -125,9 +125,7 @@ describe('Environments Folder View', () => { ...@@ -125,9 +125,7 @@ describe('Environments Folder View', () => {
describe('deploy boards', () => { describe('deploy boards', () => {
it('should render arrow to open deploy boards', (done) => { it('should render arrow to open deploy boards', (done) => {
setTimeout(() => { setTimeout(() => {
expect( expect(component.$el.querySelector('.deploy-board-icon.ic-chevron-right')).not.toBeNull();
component.$el.querySelector('.deploy-board-icon i').classList.contains('fa-caret-right'),
).toEqual(true);
done(); done();
}, 0); }, 0);
}); });
......
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