Commit 0f1d8dfd authored by George Tsiolis's avatar George Tsiolis

Update environments specs

parent d97982fe
...@@ -54,10 +54,10 @@ describe('Environment table', () => { ...@@ -54,10 +54,10 @@ describe('Environment table', () => {
}); });
expect(vm.$el.querySelector('.js-deploy-board-row')).toBeDefined(); expect(vm.$el.querySelector('.js-deploy-board-row')).toBeDefined();
expect(vm.$el.querySelector('.deploy-board-icon.ic-chevron-right')).not.toBeNull(); expect(vm.$el.querySelector('.deploy-board-icon')).not.toBeNull();
}); });
it('should toggle deploy board visibility when arrow is clicked', () => { it('should toggle deploy board visibility when arrow is clicked', (done) => {
const mockItem = { const mockItem = {
name: 'review', name: 'review',
size: 1, size: 1,
...@@ -78,6 +78,7 @@ describe('Environment table', () => { ...@@ -78,6 +78,7 @@ describe('Environment table', () => {
eventHub.$on('toggleDeployBoard', (env) => { eventHub.$on('toggleDeployBoard', (env) => {
expect(env.id).toEqual(mockItem.id); expect(env.id).toEqual(mockItem.id);
done();
}); });
vm = mountComponent(Component, { vm = mountComponent(Component, {
......
...@@ -113,7 +113,7 @@ describe('Environment', () => { ...@@ -113,7 +113,7 @@ describe('Environment', () => {
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(component.$el.querySelector('.deploy-board-icon.ic-chevron-right')).not.toBeNull(); expect(component.$el.querySelector('.deploy-board-icon.ic-chevron-right')).toBeDefined();
done(); done();
}, 0); }, 0);
}); });
......
...@@ -125,7 +125,7 @@ describe('Environments Folder View', () => { ...@@ -125,7 +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(component.$el.querySelector('.deploy-board-icon.ic-chevron-right')).not.toBeNull(); expect(component.$el.querySelector('.folder-icon.ic-chevron-right')).not.toBeNull();
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