I have the following test that was working yesterday.
t.waitForSelector('#status_aberta',function() {
Ext.Msg.hide();
var closeBtn = $('#closeBtn');
//console.log(Ext.ComponentQuery.query('window')[0].title);
t.click(closeBtn, function() {
t.diag('Expire quotation - Click closeBtn with no chosen parts.')
t.waitFor(
function() {
return Ext.ComponentQuery.query('window')[0].title=='Nenhuma peça escolhida';
},
function() {
var msgExpireQuotation = Ext.ComponentQuery.query('window');
t.is(msgExpireQuotation[0].title,'Nenhuma peça escolhida','Expired message confirmation box shown.');
t.moveMouseTo(msgExpireQuotation[0],function(){
t.moveMouseBy([-40,40],function() {
t.click(function(){
var openedTreeNodesSize = $('#openedAccordion').find('.x-grid-cell').length;
t.is(openedTreeNodesSize,2,'After SIM clicked, expiredNode removed from openedTree');
var expiredTreeNodesSize = $('#expiredAccordion').find('.x-grid-cell').length;
t.is(expiredTreeNodesSize,3,'After SIM clicked, expiredNode inserted at expiredTree');
var openedTreeNodes = $('#openedAccordion').find('.x-grid-cell');
t.click(openedTreeNodes[0],function() {
t.waitForSelector('#cb11_13',function() {
var cb1 = Ext.select("#cb11_13");
t.click(cb1.elements[0],function() {
t.waitFor(
function() {
return $("#conteudo_escolhida").find(".row_data").size()!=0;
},
function() {
t.diag('Close quotation - Click closeBtn with at least one chosen part.')
//var partsChosen = $("#conteudo_escolhida").find(".row_data").size();
//t.is(partsChosen,1,'1 part was checked and exists in #chosen_content');
var closeBtn = $('#closeBtn');
t.click(closeBtn, function() {
t.waitFor(
function() {
return Ext.ComponentQuery.query('window')[0].title=='Enviar pedido';
},
function() {
var msgExpireQuotation = Ext.ComponentQuery.query('window');
t.is(msgExpireQuotation[0].title,'Enviar pedido','Closed message confirmation box shown.');
}
)
});
}
)
});
});
});
});
});
});
}
);
});
});
- 1. Click in an button inside the data view.
2. Test if an Message box apeared with a specific title.
3. Click the YES button of MsgBox
4. Test if a node was removed from one tree and inserted in another tree.
I do not understand whats going on. I did not change any line, it is the same as yerterday and stop working.
I am having some issues using Chrome, sometimes it seems it do not load the file again, as if it is using caching, but caching is disable. I got the same problem in private mode (caching is always disabled).
Tks