Get help with testing, discuss unit testing strategies etc.


Post by texxok »

Hello guys!

The function "moveCursorTo" stopped working in IE8,9 from version ExtJS 5.0.1

We are calling it like this:
{ action : 'moveCursorTo', target : '>> grid[title="My Active Tickets"] button[text=Refresh]' },
With ExtJS 5.0.0 and Siesta 2.0.9, it works on all browsers.
With ExtJS 5.0.1+ and Siesta 2.0.9, it works on all browsers except for IE8,IE9

NOTE: mouseClick is working

This might be related to the issue with mouseover on IE10,11.

In release notes of 5.0.1 they mentioned some changes of focus, maybe it somehow broken targeting in IE8,9.
https://docs.sencha.com/extjs/5.0/whats_ ... s_new.html

Thank you guys!

Post by nickolay »

Thanks for the report, we'll investigate.

Post by nickolay »

It seems to work fine in our tests, can you provide more details? What exactly does not work? Do you mean the "mouseover" event is not activated or something else?

Post by texxok »

Hello Nickolay,

The mouseover event is not detected by ExtJS.
I have created screencast with the issue:
https://youtu.be/TgqRbMewrAE

If you have ExtJS examples ("examples/kitchensink/#message-box"), you can test it with this test code:
StartTest(function(t){
	var btns = Ext.ComponentQuery.query('message-box button');
	t.pass(document.URL)
	
	t.describe('Test example loaded properly', function(t){
		var counter = -1;
		for(var i = 0; i< btns.length; i++){
			t.it('Test if '+ btns[i].text +' button is highlighted',function(t){
				counter++;
				t.chain(
					{ action : 'moveCursorTo', target : btns[counter] },
					{ waitFor: 'selector', 
					args: '#'+btns[counter].id+'.x-btn-over',
					timeout: 1000}	
				);
			});
		}
	});
});
And Harness file:
{
 //hostPageUrl : 'https://localhost/sh/extJS/ext-5.0.0/build/examples/kitchensink/#message-box',
hostPageUrl : 'https://localhost/sh/extJS/ext-5.0.1/build/examples/kitchensink/#message-box',
url: 'ks-message-box.t.js',
viewportHeight  : 600,
 viewportWidth   : 600
}
Thanks

Post by texxok »

Quick update: This might be related only to buttons.

Post by nickolay »

Confirmed.

Post by nickolay »

Should be fixed now in the sources. You can verify the fix in the next nightly build, or wait till the 2.0.10 :)

Post by texxok »

Verified! Thanks a lot for a quick fix! :)

Post Reply