Skip to content
Snippets Groups Projects
Commit 2b703af2 authored by Clement Ho's avatar Clement Ho
Browse files

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

Backport of EE changes in environments tests

See merge request !10528

Former-commit-id: 9c2b0f54
parents acbc4e9b 11d788ac
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -83,9 +83,10 @@ describe('Environment', () => {
 
it('should render a table with environments', (done) => {
setTimeout(() => {
expect(component.$el.querySelectorAll('table')).toBeDefined();
expect(
component.$el.querySelectorAll('table tbody tr').length,
).toEqual(1);
component.$el.querySelector('.environment-name').textContent.trim(),
).toEqual(environment.name);
done();
}, 0);
});
Loading
Loading
Loading
Loading
@@ -47,9 +47,10 @@ describe('Environments Folder View', () => {
 
it('should render a table with environments', (done) => {
setTimeout(() => {
expect(component.$el.querySelectorAll('table')).toBeDefined();
expect(
component.$el.querySelectorAll('table tbody tr').length,
).toEqual(2);
component.$el.querySelector('.environment-name').textContent.trim(),
).toEqual(environmentsList[0].name);
done();
}, 0);
});
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment