mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
debugging test failure that only occurs on travis
This commit is contained in:
parent
4e0d859307
commit
e8ee8ffe9e
1 changed files with 14 additions and 4 deletions
|
@ -178,10 +178,20 @@ define(function (require) {
|
|||
});
|
||||
|
||||
describe('render Method', function () {
|
||||
beforeEach(function () {
|
||||
expect(d3.select(yAxis.el).selectAll('.y-axis-div')).to.have.length(1);
|
||||
[$(yAxis.el), $(yAxis.el).find('.y-axis-div')].forEach(debug);
|
||||
yAxis.render();
|
||||
beforeEach(function (done) {
|
||||
var $node = $(yAxis.el);
|
||||
|
||||
(function check() {
|
||||
if ($node.css('display') !== '-webkit-box') {
|
||||
console.log('waiting for css to load');
|
||||
setTimeout(check, 1000);
|
||||
} else {
|
||||
expect(d3.select(yAxis.el).selectAll('.y-axis-div')).to.have.length(1);
|
||||
[$(yAxis.el), $(yAxis.el).find('.y-axis-div')].forEach(debug);
|
||||
yAxis.render();
|
||||
done();
|
||||
}
|
||||
}());
|
||||
});
|
||||
|
||||
it('should append an svg to div', function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue