mirror of https://gitee.com/bigwinds/arangodb
Fixed tests for new graphviwer toolbox layout
This commit is contained in:
parent
4dc635e59c
commit
c83f4621c1
|
@ -92,9 +92,8 @@ var uiMatchers = uiMatchers || {};
|
|||
expect(box).toBeOfClass("btn-group-vertical");
|
||||
expect(box).toBeOfClass("toolbox");
|
||||
_.each(box.children, function(btn) {
|
||||
expect(btn).toBeTag("button");
|
||||
expect(btn).toBeOfClass("btn");
|
||||
expect(btn).toBeOfClass("btn-icon");
|
||||
expect(btn).toBeTag("div");
|
||||
expect(btn).toBeOfClass("gv_action_button");
|
||||
});
|
||||
return true;
|
||||
},
|
||||
|
|
|
@ -179,13 +179,18 @@
|
|||
this.addMatchers({
|
||||
toConformToToolbox: function() {
|
||||
var box = this.actual,
|
||||
icon = $("h6", $(box))[0],
|
||||
title = $("h6", $(box))[1],
|
||||
foundActive = false,
|
||||
failed = false;
|
||||
_.each(box.children, function(btn) {
|
||||
expect(btn).toBeTag("button");
|
||||
expect(btn).toBeOfClass("btn btn-icon");
|
||||
expect(btn).toBeOfClass("btn-icon");
|
||||
expect(btn).toBeOfClass("gv-icon-btn");
|
||||
expect(btn).toBeTag("div");
|
||||
expect(btn).toBeOfClass("gv_action_button");
|
||||
expect(icon).toBeTag("h6");
|
||||
expect(icon).toBeOfClass("fa");
|
||||
expect(icon).toBeOfClass("gv_icon_icon");
|
||||
expect(title).toBeTag("h6");
|
||||
expect(title).toBeOfClass("gv_button_title");
|
||||
if ($(btn).hasClass("active")) {
|
||||
if (foundActive) {
|
||||
failed = true;
|
||||
|
|
Loading…
Reference in New Issue