Skip to content

Instantly share code, notes, and snippets.

@spattanaik75
Created August 10, 2020 17:06
Show Gist options
  • Save spattanaik75/13f12079d4198579c2919b591e02a351 to your computer and use it in GitHub Desktop.
Save spattanaik75/13f12079d4198579c2919b591e02a351 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Nightwatch HTML Report - Default Theme</title>
<style type="text/css">body{
margin: 10px;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 0.8em;
}
h2{
font-size: 1.2em;
margin: 0;
padding: 0;
}
h3{
font-size: 1em;
margin: 0;
padding: 0;
}
.toggleSuccess, .toggleError{
margin-right: 10px;
}
.errmessages{
background-color: rgba(238, 64, 64, 0.43);
border: 1px solid rgba(235, 28, 28, 0.78);
padding: 5px;
}
.errmessages h2{
margin: 5px 0;
font-size: 1em;
}
.errmessages .errors{
display: none;
}
.suites {
margin: 0 0 0 30px;
}
.package {
margin: 15px 0;
}
.package > .name {
cursor: pointer;
}
.suite {
margin: 15px 0;
}
.suite > .name {
cursor: pointer;
}
ul{
list-style: none;
}
.testcases {
}
.status{
display: inline-block;
}
.testcase .name {
display: inline-block;
}
.success{
color: rgb(56, 142, 56);
}
.testcase img{
max-width: 80%;
}
.package.error > .name{
color: rgb(178, 43, 43);
}
.suite.error > .name{
color: rgb(178, 43, 43);
}
.testcase.success .name{
color: rgb(56, 142, 56);
}
.testcase.error .status{
color: rgb(178, 43, 43);
}
</style>
<script type="text/javascript">/*! Zepto 1.2.0 (generated with Zepto Builder) - zepto event ie - zeptojs.com/license */
var Zepto=function(){function t(t){return null==t?String(t):Y[J.call(t)]||"object"}function n(n){return"function"==t(n)}function e(t){return null!=t&&t==t.window}function r(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function i(n){return"object"==t(n)}function o(t){return i(t)&&!e(t)&&Object.getPrototypeOf(t)==Object.prototype}function s(t){var n=!!t&&"length"in t&&t.length,r=C.type(t);return"function"!=r&&!e(t)&&("array"==r||0===n||"number"==typeof n&&n>0&&n-1 in t)}function u(t){return L.call(t,function(t){return null!=t})}function a(t){return t.length>0?C.fn.concat.apply([],t):t}function c(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function l(t){return t in k?k[t]:k[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function f(t,n){return"number"!=typeof n||D[c(t)]?n:n+"px"}function h(t){var n,e;return j[t]||(n=$.createElement(t),$.body.appendChild(n),e=getComputedStyle(n,"").getPropertyValue("display"),n.parentNode.removeChild(n),"none"==e&&(e="block"),j[t]=e),j[t]}function p(t){return"children"in t?Z.call(t.children):C.map(t.childNodes,function(t){return 1==t.nodeType?t:void 0})}function d(t,n){var e,r=t?t.length:0;for(e=0;r>e;e++)this[e]=t[e];this.length=r,this.selector=n||""}function m(t,n,e){for(N in n)e&&(o(n[N])||K(n[N]))?(o(n[N])&&!o(t[N])&&(t[N]={}),K(n[N])&&!K(t[N])&&(t[N]=[]),m(t[N],n[N],e)):n[N]!==x&&(t[N]=n[N])}function g(t,n){return null==n?C(t):C(t).filter(n)}function v(t,e,r,i){return n(e)?e.call(t,r,i):e}function y(t,n,e){null==e?t.removeAttribute(n):t.setAttribute(n,e)}function E(t,n){var e=t.className||"",r=e&&e.baseVal!==x;return n===x?r?e.baseVal:e:void(r?e.baseVal=n:t.className=n)}function w(t){try{return t?"true"==t||("false"==t?!1:"null"==t?null:+t+""==t?+t:/^[\[\{]/.test(t)?C.parseJSON(t):t):t}catch(n){return t}}function b(t,n){n(t);for(var e=0,r=t.childNodes.length;r>e;e++)b(t.childNodes[e],n)}var x,N,C,S,O,P,T=[],A=T.concat,L=T.filter,Z=T.slice,$=window.document,j={},k={},D={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},M=/^\s*<(\w+|!)[^>]*>/,z=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,V=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,_=/^(?:body|html)$/i,B=/([A-Z])/g,F=["val","css","html","text","data","width","height","offset"],q=["after","prepend","before","append"],I=$.createElement("table"),R=$.createElement("tr"),H={tr:$.createElement("tbody"),tbody:I,thead:I,tfoot:I,td:R,th:R,"*":$.createElement("div")},X=/^[\w-]*$/,Y={},J=Y.toString,U={},W=$.createElement("div"),G={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},K=Array.isArray||function(t){return t instanceof Array};return U.matches=function(t,n){if(!n||!t||1!==t.nodeType)return!1;var e=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(e)return e.call(t,n);var r,i=t.parentNode,o=!i;return o&&(i=W).appendChild(t),r=~U.qsa(i,n).indexOf(t),o&&W.removeChild(t),r},O=function(t){return t.replace(/-+(.)?/g,function(t,n){return n?n.toUpperCase():""})},P=function(t){return L.call(t,function(n,e){return t.indexOf(n)==e})},U.fragment=function(t,n,e){var r,i,s;return z.test(t)&&(r=C($.createElement(RegExp.$1))),r||(t.replace&&(t=t.replace(V,"<$1></$2>")),n===x&&(n=M.test(t)&&RegExp.$1),n in H||(n="*"),s=H[n],s.innerHTML=""+t,r=C.each(Z.call(s.childNodes),function(){s.removeChild(this)})),o(e)&&(i=C(r),C.each(e,function(t,n){F.indexOf(t)>-1?i[t](n):i.attr(t,n)})),r},U.Z=function(t,n){return new d(t,n)},U.isZ=function(t){return t instanceof U.Z},U.init=function(t,e){var r;if(!t)return U.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&M.test(t))r=U.fragment(t,RegExp.$1,e),t=null;else{if(e!==x)return C(e).find(t);r=U.qsa($,t)}else{if(n(t))return C($).ready(t);if(U.isZ(t))return t;if(K(t))r=u(t);else if(i(t))r=[t],t=null;else if(M.test(t))r=U.fragment(t.trim(),RegExp.$1,e),t=null;else{if(e!==x)return C(e).find(t);r=U.qsa($,t)}}return U.Z(r,t)},C=function(t,n){return U.init(t,n)},C.extend=function(t){var n,e=Z.call(arguments,1);return"boolean"==typeof t&&(n=t,t=e.shift()),e.forEach(function(e){m(t,e,n)}),t},U.qsa=function(t,n){var e,r="#"==n[0],i=!r&&"."==n[0],o=r||i?n.slice(1):n,s=X.test(o);return t.getElementById&&s&&r?(e=t.getElementById(o))?[e]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:Z.call(s&&!r&&t.getElementsByClassName?i?t.getElementsByClassName(o):t.getElementsByTagName(n):t.querySelectorAll(n))},C.contains=$.documentElement.contains?function(t,n){return t!==n&&t.contains(n)}:function(t,n){for(;n&&(n=n.parentNode);)if(n===t)return!0;return!1},C.type=t,C.isFunction=n,C.isWindow=e,C.isArray=K,C.isPlainObject=o,C.isEmptyObject=function(t){var n;for(n in t)return!1;return!0},C.isNumeric=function(t){var n=Number(t),e=typeof t;return null!=t&&"boolean"!=e&&("string"!=e||t.length)&&!isNaN(n)&&isFinite(n)||!1},C.inArray=function(t,n,e){return T.indexOf.call(n,t,e)},C.camelCase=O,C.trim=function(t){return null==t?"":String.prototype.trim.call(t)},C.uuid=0,C.support={},C.expr={},C.noop=function(){},C.map=function(t,n){var e,r,i,o=[];if(s(t))for(r=0;r<t.length;r++)e=n(t[r],r),null!=e&&o.push(e);else for(i in t)e=n(t[i],i),null!=e&&o.push(e);return a(o)},C.each=function(t,n){var e,r;if(s(t)){for(e=0;e<t.length;e++)if(n.call(t[e],e,t[e])===!1)return t}else for(r in t)if(n.call(t[r],r,t[r])===!1)return t;return t},C.grep=function(t,n){return L.call(t,n)},window.JSON&&(C.parseJSON=JSON.parse),C.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,n){Y["[object "+n+"]"]=n.toLowerCase()}),C.fn={constructor:U.Z,length:0,forEach:T.forEach,reduce:T.reduce,push:T.push,sort:T.sort,splice:T.splice,indexOf:T.indexOf,concat:function(){var t,n,e=[];for(t=0;t<arguments.length;t++)n=arguments[t],e[t]=U.isZ(n)?n.toArray():n;return A.apply(U.isZ(this)?this.toArray():this,e)},map:function(t){return C(C.map(this,function(n,e){return t.call(n,e,n)}))},slice:function(){return C(Z.apply(this,arguments))},ready:function(t){if("complete"===$.readyState||"loading"!==$.readyState&&!$.documentElement.doScroll)setTimeout(function(){t(C)},0);else{var n=function(){$.removeEventListener("DOMContentLoaded",n,!1),window.removeEventListener("load",n,!1),t(C)};$.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)}return this},get:function(t){return t===x?Z.call(this):this[t>=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return T.every.call(this,function(n,e){return t.call(n,e,n)!==!1}),this},filter:function(t){return n(t)?this.not(this.not(t)):C(L.call(this,function(n){return U.matches(n,t)}))},add:function(t,n){return C(P(this.concat(C(t,n))))},is:function(t){return this.length>0&&U.matches(this[0],t)},not:function(t){var e=[];if(n(t)&&t.call!==x)this.each(function(n){t.call(this,n)||e.push(this)});else{var r="string"==typeof t?this.filter(t):s(t)&&n(t.item)?Z.call(t):C(t);this.forEach(function(t){r.indexOf(t)<0&&e.push(t)})}return C(e)},has:function(t){return this.filter(function(){return i(t)?C.contains(this,t):C(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!i(t)?t:C(t)},last:function(){var t=this[this.length-1];return t&&!i(t)?t:C(t)},find:function(t){var n,e=this;return n=t?"object"==typeof t?C(t).filter(function(){var t=this;return T.some.call(e,function(n){return C.contains(n,t)})}):1==this.length?C(U.qsa(this[0],t)):this.map(function(){return U.qsa(this,t)}):C()},closest:function(t,n){var e=[],i="object"==typeof t&&C(t);return this.each(function(o,s){for(;s&&!(i?i.indexOf(s)>=0:U.matches(s,t));)s=s!==n&&!r(s)&&s.parentNode;s&&e.indexOf(s)<0&&e.push(s)}),C(e)},parents:function(t){for(var n=[],e=this;e.length>0;)e=C.map(e,function(t){return(t=t.parentNode)&&!r(t)&&n.indexOf(t)<0?(n.push(t),t):void 0});return g(n,t)},parent:function(t){return g(P(this.pluck("parentNode")),t)},children:function(t){return g(this.map(function(){return p(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||Z.call(this.childNodes)})},siblings:function(t){return g(this.map(function(t,n){return L.call(p(n.parentNode),function(t){return t!==n})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return C.map(this,function(n){return n[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=h(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=n(t);if(this[0]&&!e)var r=C(t).get(0),i=r.parentNode||this.length>1;return this.each(function(n){C(this).wrapAll(e?t.call(this,n):i?r.cloneNode(!0):r)})},wrapAll:function(t){if(this[0]){C(this[0]).before(t=C(t));for(var n;(n=t.children()).length;)t=n.first();C(t).append(this)}return this},wrapInner:function(t){var e=n(t);return this.each(function(n){var r=C(this),i=r.contents(),o=e?t.call(this,n):t;i.length?i.wrapAll(o):r.append(o)})},unwrap:function(){return this.parent().each(function(){C(this).replaceWith(C(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var n=C(this);(t===x?"none"==n.css("display"):t)?n.show():n.hide()})},prev:function(t){return C(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return C(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(n){var e=this.innerHTML;C(this).empty().append(v(this,t,n,e))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(n){var e=v(this,t,n,this.textContent);this.textContent=null==e?"":""+e}):0 in this?this.pluck("textContent").join(""):null},attr:function(t,n){var e;return"string"!=typeof t||1 in arguments?this.each(function(e){if(1===this.nodeType)if(i(t))for(N in t)y(this,N,t[N]);else y(this,t,v(this,n,e,this.getAttribute(t)))}):0 in this&&1==this[0].nodeType&&null!=(e=this[0].getAttribute(t))?e:x},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){y(this,t)},this)})},prop:function(t,n){return t=G[t]||t,1 in arguments?this.each(function(e){this[t]=v(this,n,e,this[t])}):this[0]&&this[0][t]},removeProp:function(t){return t=G[t]||t,this.each(function(){delete this[t]})},data:function(t,n){var e="data-"+t.replace(B,"-$1").toLowerCase(),r=1 in arguments?this.attr(e,n):this.attr(e);return null!==r?w(r):x},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(n){this.value=v(this,t,n,this.value)})):this[0]&&(this[0].multiple?C(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(t){if(t)return this.each(function(n){var e=C(this),r=v(this,t,n,e.offset()),i=e.offsetParent().offset(),o={top:r.top-i.top,left:r.left-i.left};"static"==e.css("position")&&(o.position="relative"),e.css(o)});if(!this.length)return null;if($.documentElement!==this[0]&&!C.contains($.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+window.pageXOffset,top:n.top+window.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(n,e){if(arguments.length<2){var r=this[0];if("string"==typeof n){if(!r)return;return r.style[O(n)]||getComputedStyle(r,"").getPropertyValue(n)}if(K(n)){if(!r)return;var i={},o=getComputedStyle(r,"");return C.each(n,function(t,n){i[n]=r.style[O(n)]||o.getPropertyValue(n)}),i}}var s="";if("string"==t(n))e||0===e?s=c(n)+":"+f(n,e):this.each(function(){this.style.removeProperty(c(n))});else for(N in n)n[N]||0===n[N]?s+=c(N)+":"+f(N,n[N])+";":this.each(function(){this.style.removeProperty(c(N))});return this.each(function(){this.style.cssText+=";"+s})},index:function(t){return t?this.indexOf(C(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return t?T.some.call(this,function(t){return this.test(E(t))},l(t)):!1},addClass:function(t){return t?this.each(function(n){if("className"in this){S=[];var e=E(this),r=v(this,t,n,e);r.split(/\s+/g).forEach(function(t){C(this).hasClass(t)||S.push(t)},this),S.length&&E(this,e+(e?" ":"")+S.join(" "))}}):this},removeClass:function(t){return this.each(function(n){if("className"in this){if(t===x)return E(this,"");S=E(this),v(this,t,n,S).split(/\s+/g).forEach(function(t){S=S.replace(l(t)," ")}),E(this,S.trim())}})},toggleClass:function(t,n){return t?this.each(function(e){var r=C(this),i=v(this,t,e,E(this));i.split(/\s+/g).forEach(function(t){(n===x?!r.hasClass(t):n)?r.addClass(t):r.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var n="scrollTop"in this[0];return t===x?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var n="scrollLeft"in this[0];return t===x?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],n=this.offsetParent(),e=this.offset(),r=_.test(n[0].nodeName)?{top:0,left:0}:n.offset();return e.top-=parseFloat(C(t).css("margin-top"))||0,e.left-=parseFloat(C(t).css("margin-left"))||0,r.top+=parseFloat(C(n[0]).css("border-top-width"))||0,r.left+=parseFloat(C(n[0]).css("border-left-width"))||0,{top:e.top-r.top,left:e.left-r.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||$.body;t&&!_.test(t.nodeName)&&"static"==C(t).css("position");)t=t.offsetParent;return t})}},C.fn.detach=C.fn.remove,["width","height"].forEach(function(t){var n=t.replace(/./,function(t){return t[0].toUpperCase()});C.fn[t]=function(i){var o,s=this[0];return i===x?e(s)?s["inner"+n]:r(s)?s.documentElement["scroll"+n]:(o=this.offset())&&o[t]:this.each(function(n){s=C(this),s.css(t,v(this,i,n,s[t]()))})}}),q.forEach(function(n,e){var r=e%2;C.fn[n]=function(){var n,i,o=C.map(arguments,function(e){var r=[];return n=t(e),"array"==n?(e.forEach(function(t){return t.nodeType!==x?r.push(t):C.zepto.isZ(t)?r=r.concat(t.get()):void(r=r.concat(U.fragment(t)))}),r):"object"==n||null==e?e:U.fragment(e)}),s=this.length>1;return o.length<1?this:this.each(function(t,n){i=r?n:n.parentNode,n=0==e?n.nextSibling:1==e?n.firstChild:2==e?n:null;var u=C.contains($.documentElement,i);o.forEach(function(t){if(s)t=t.cloneNode(!0);else if(!i)return C(t).remove();i.insertBefore(t,n),u&&b(t,function(t){if(!(null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src)){var n=t.ownerDocument?t.ownerDocument.defaultView:window;n.eval.call(n,t.innerHTML)}})})})},C.fn[r?n+"To":"insert"+(e?"Before":"After")]=function(t){return C(t)[n](this),this}}),U.Z.prototype=d.prototype=C.fn,U.uniq=P,U.deserializeValue=w,C.zepto=U,C}();window.Zepto=Zepto,void 0===window.$&&(window.$=Zepto),function(t){function n(t){return t._zid||(t._zid=h++)}function e(t,e,o,s){if(e=r(e),e.ns)var u=i(e.ns);return(g[n(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||u.test(t.ns))&&(!o||n(t.fn)===n(o))&&(!s||t.sel==s)})}function r(t){var n=(""+t).split(".");return{e:n[0],ns:n.slice(1).sort().join(" ")}}function i(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function o(t,n){return t.del&&!y&&t.e in E||!!n}function s(t){return w[t]||y&&E[t]||t}function u(e,i,u,a,l,h,p){var d=n(e),m=g[d]||(g[d]=[]);i.split(/\s/).forEach(function(n){if("ready"==n)return t(document).ready(u);var i=r(n);i.fn=u,i.sel=l,i.e in w&&(u=function(n){var e=n.relatedTarget;return!e||e!==this&&!t.contains(this,e)?i.fn.apply(this,arguments):void 0}),i.del=h;var d=h||u;i.proxy=function(t){if(t=c(t),!t.isImmediatePropagationStopped()){t.data=a;var n=d.apply(e,t._args==f?[t]:[t].concat(t._args));return n===!1&&(t.preventDefault(),t.stopPropagation()),n}},i.i=m.length,m.push(i),"addEventListener"in e&&e.addEventListener(s(i.e),i.proxy,o(i,p))})}function a(t,r,i,u,a){var c=n(t);(r||"").split(/\s/).forEach(function(n){e(t,n,i,u).forEach(function(n){delete g[c][n.i],"removeEventListener"in t&&t.removeEventListener(s(n.e),n.proxy,o(n,a))})})}function c(n,e){if(e||!n.isDefaultPrevented){e||(e=n),t.each(C,function(t,r){var i=e[t];n[t]=function(){return this[r]=b,i&&i.apply(e,arguments)},n[r]=x});try{n.timeStamp||(n.timeStamp=Date.now())}catch(r){}(e.defaultPrevented!==f?e.defaultPrevented:"returnValue"in e?e.returnValue===!1:e.getPreventDefault&&e.getPreventDefault())&&(n.isDefaultPrevented=b)}return n}function l(t){var n,e={originalEvent:t};for(n in t)N.test(n)||t[n]===f||(e[n]=t[n]);return c(e,t)}var f,h=1,p=Array.prototype.slice,d=t.isFunction,m=function(t){return"string"==typeof t},g={},v={},y="onfocusin"in window,E={focus:"focusin",blur:"focusout"},w={mouseenter:"mouseover",mouseleave:"mouseout"};v.click=v.mousedown=v.mouseup=v.mousemove="MouseEvents",t.event={add:u,remove:a},t.proxy=function(e,r){var i=2 in arguments&&p.call(arguments,2);if(d(e)){var o=function(){return e.apply(r,i?i.concat(p.call(arguments)):arguments)};return o._zid=n(e),o}if(m(r))return i?(i.unshift(e[r],e),t.proxy.apply(null,i)):t.proxy(e[r],e);throw new TypeError("expected function")},t.fn.bind=function(t,n,e){return this.on(t,n,e)},t.fn.unbind=function(t,n){return this.off(t,n)},t.fn.one=function(t,n,e,r){return this.on(t,n,e,r,1)};var b=function(){return!0},x=function(){return!1},N=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,C={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};t.fn.delegate=function(t,n,e){return this.on(n,t,e)},t.fn.undelegate=function(t,n,e){return this.off(n,t,e)},t.fn.live=function(n,e){return t(document.body).delegate(this.selector,n,e),this},t.fn.die=function(n,e){return t(document.body).undelegate(this.selector,n,e),this},t.fn.on=function(n,e,r,i,o){var s,c,h=this;return n&&!m(n)?(t.each(n,function(t,n){h.on(t,e,r,n,o)}),h):(m(e)||d(i)||i===!1||(i=r,r=e,e=f),(i===f||r===!1)&&(i=r,r=f),i===!1&&(i=x),h.each(function(f,h){o&&(s=function(t){return a(h,t.type,i),i.apply(this,arguments)}),e&&(c=function(n){var r,o=t(n.target).closest(e,h).get(0);return o&&o!==h?(r=t.extend(l(n),{currentTarget:o,liveFired:h}),(s||i).apply(o,[r].concat(p.call(arguments,1)))):void 0}),u(h,n,i,r,e,c||s)}))},t.fn.off=function(n,e,r){var i=this;return n&&!m(n)?(t.each(n,function(t,n){i.off(t,e,n)}),i):(m(e)||d(r)||r===!1||(r=e,e=f),r===!1&&(r=x),i.each(function(){a(this,n,r,e)}))},t.fn.trigger=function(n,e){return n=m(n)||t.isPlainObject(n)?t.Event(n):c(n),n._args=e,this.each(function(){n.type in E&&"function"==typeof this[n.type]?this[n.type]():"dispatchEvent"in this?this.dispatchEvent(n):t(this).triggerHandler(n,e)})},t.fn.triggerHandler=function(n,r){var i,o;return this.each(function(s,u){i=l(m(n)?t.Event(n):n),i._args=r,i.target=u,t.each(e(u,n.type||n),function(t,n){return o=n.proxy(i),i.isImmediatePropagationStopped()?!1:void 0})}),o},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(n){t.fn[n]=function(t){return 0 in arguments?this.bind(n,t):this.trigger(n)}}),t.Event=function(t,n){m(t)||(n=t,t=n.type);var e=document.createEvent(v[t]||"Events"),r=!0;if(n)for(var i in n)"bubbles"==i?r=!!n[i]:e[i]=n[i];return e.initEvent(t,r,!0),c(e)}}(Zepto),function(){try{getComputedStyle(void 0)}catch(t){var n=getComputedStyle;window.getComputedStyle=function(t,e){try{return n(t,e)}catch(r){return null}}}}();
$(document).ready(function() {
$('.package>.name').click(function() {
$(this).siblings('.suites').toggle();
});
$('.suites, .errmessages, .testcases').hide();
$('.suite, .errmessages').click(function() {
var $elem = $(this);
$elem.children('.testcases, .errors').toggle();
});
$('.toggleSuccess').click(function() {
$('.package.success').toggle();
});
$('.toggleError').click(function() {
$('.package.error').toggle();
});
});
</script>
</head>
<body>
<h1>Nightwatch Results</h1>
<div id="container"><a class="toggleSuccess" href="#">Show/Hide Successes</a>
<div class="package success">
<h2 class="name">&#10003; upload_screenshots_to_s3</h2>
<div class="suites">
</div>
</div>
<div class="package success">
<h2 class="name">&#10003; guineaPig</h2>
<div class="suites">
<div class="suite success">
<h3 class="name">Guinea Pig Assert Title</h3>
<ul class="testcases">
<li class="testcase success">
<div class="status">&#10003;</div>
<div class="name">Element &lt;body&gt; was visible after 79 milliseconds.</div>
</li>
<li class="testcase success">
<div class="status">&#10003;</div>
<div class="name">Testing if the page title equals 'I am a page title - Sauce Labs' (21ms)</div>
</li>
</ul>
</div>
</div>
</div>
<div class="package success">
<h2 class="name">&#10003; github</h2>
<div class="suites">
<div class="suite success">
<h3 class="name">Demo test GitHub</h3>
<ul class="testcases">
<li class="testcase success">
<div class="status">&#10003;</div>
<div class="name">Element &lt;body&gt; was visible after 31 milliseconds.</div>
</li>
<li class="testcase success">
<div class="status">&#10003;</div>
<div class="name">Testing if element &lt;body&gt; contains text 'dwyl.com' (650ms)</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment