Commit bf3958cb authored by Clement Ho's avatar Clement Ho Committed by Felipe Artur

Merge branch '1595-ee-backport-environments-tests' into 'master'

Backport of EE changes in environments tests

See merge request !10528
parent 5e79336d
...@@ -83,9 +83,10 @@ describe('Environment', () => { ...@@ -83,9 +83,10 @@ describe('Environment', () => {
it('should render a table with environments', (done) => { it('should render a table with environments', (done) => {
setTimeout(() => { setTimeout(() => {
expect(component.$el.querySelectorAll('table')).toBeDefined();
expect( expect(
component.$el.querySelectorAll('table tbody tr').length, component.$el.querySelector('.environment-name').textContent.trim(),
).toEqual(1); ).toEqual(environment.name);
done(); done();
}, 0); }, 0);
}); });
......
...@@ -47,9 +47,10 @@ describe('Environments Folder View', () => { ...@@ -47,9 +47,10 @@ describe('Environments Folder View', () => {
it('should render a table with environments', (done) => { it('should render a table with environments', (done) => {
setTimeout(() => { setTimeout(() => {
expect(component.$el.querySelectorAll('table')).toBeDefined();
expect( expect(
component.$el.querySelectorAll('table tbody tr').length, component.$el.querySelector('.environment-name').textContent.trim(),
).toEqual(2); ).toEqual(environmentsList[0].name);
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