mirror of https://gitee.com/bigwinds/arangodb
Fixed test for clusterCoordinator
This commit is contained in:
parent
3c09a7827a
commit
099fac2582
|
@ -26,12 +26,15 @@
|
||||||
return document.getElementById(name);
|
return document.getElementById(name);
|
||||||
},
|
},
|
||||||
checkTile = function(c, cls) {
|
checkTile = function(c, cls) {
|
||||||
var tile = getTile(c.name);
|
var tile = getTile(c.name),
|
||||||
|
inner = tile.children[0];
|
||||||
expect(tile).toBeOfClass("coordinator");
|
expect(tile).toBeOfClass("coordinator");
|
||||||
expect(tile).toBeOfClass("btn-" + cls);
|
expect(tile).toBeOfClass("domino");
|
||||||
expect(tile.children[0]).toBeOfClass("domino-header");
|
expect(inner).toBeOfClass("btn-" + cls);
|
||||||
expect($(tile.children[0]).text()).toEqual(c.name);
|
expect(inner).toBeOfClass("domino-inner");
|
||||||
expect($(tile.children[1]).text()).toEqual(c.url);
|
expect(inner.children[0]).toBeOfClass("domino-header");
|
||||||
|
expect($(inner.children[0]).text()).toEqual(c.name);
|
||||||
|
expect($(inner.children[1]).text()).toEqual(c.url);
|
||||||
};
|
};
|
||||||
|
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
|
|
Loading…
Reference in New Issue