siesta-lite
Version:
Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers
35 lines (29 loc) • 953 B
JavaScript
StartTest(function (t) {
t.it('Should not show upgrade button if you are on latest', function (t) {
Siesta.meta.VERSION = '11.1.1';
Ext.ux.ajax.SimManager.init({
delay : 100
}).register(
{
'https://bryntum.com/siesta_version' : {
responseText : '{ "name" : "11.1.1" }'
}
}
);
t.getHarness(
{ viewDOM : true },
[ 'testfiles/601_siesta_ui_passing.t.js' ]
);
t.chain(
{ waitFor : 'HarnessReady' },
function (next) {
t.cqNotExists('versionupdatebutton{isVisible()}', 'Should not find upgrade button')
next();
},
{ waitFor : 5000 },
function (next) {
t.cqNotExists('versionupdatebutton{isVisible()}', 'Should not find upgrade button')
}
);
});
});