Get help with testing, discuss unit testing strategies etc.


Post by mima1974 »

Hello!

if i run my following test - the t.click method executes but the click occur on the wrong place in the GUI.
On the same page I have exact the same problem if i try to click on a button!?
I've run the tests in FF and Chrome ... equal behavior.

Siesta Version 1.0.7
Ext JS 3

Harness:
// Harness Ext 4
var Harness = Siesta.Harness.Browser.ExtJS

Harness.configure({
    title           : 'Test-Case Logon',
    needDone        : true,
    viewDOM         : true,
    forceDOMVisible : $.browser.msie,
    autoCheckGlobals: false,
    testClass       : Test.Base,
    waitForTimeout  : 20000,
    consoledebug    : false,
    runCore         : 'sequential',
    preload         : [
        //"../../ext/resources/css/ext-all.css",
        //"../../debug/ext/ext-base-debug.js",
        //"../../debug/ext/ext-all-debug.js"
    ]
})

Harness.start(
        '005_basic_assertions.t.js',
    {
        group           : '010-Test-Scenarios 1',
        separateContext : true,
        hostPageUrl     : 'https://localhost/xxxxxx/login.aspx',
        
        items           : [
            '010_open_Crm1_xxx_contact_success.t.js'
        ]
    },
)


// Test-Case ('010_open_Crm1_xxx_contact_success.t.js'):

var tGrid = xyzRef.zyx.Mask.TransactionGrid  // Ext.grid.EditorGridPanel
var cell = tGrid.getView().getCell(0,3) // t.getCell(tGrid, 0, 2)

// console.log(cell) Output:
// <td class=​"x-grid3-col x-grid3-cell x-grid3-td-3 x-grid3-cell-last " style=​"width:​ 30px;​" tabindex=​"0" id=​"ext-gen386">​
//    <div class=​"x-grid3-cell-inner x-grid3-col-3" unselectable=​"on">​
//       <img src=​"bullet_arrow_down.png">​
//    </div>​
// </td>​

var cellEl = t.Ext().get(cell)
t.click(cellEl)
Best greetings to the Siesta-Team
Michael
Attachments
Hardcopy (blue circle is the correct click position)
Hardcopy (blue circle is the correct click position)
klick.png (7.69 KiB) Viewed 3589 times

Post by nickolay »

hi Michael,

Hm.. Try to remove this line:
var cellEl = t.Ext().get(cell) 
and click directly on the DOM element?
t.click(cell)

Post by mima1974 »

I've try it - still the same problem.

Post by nickolay »

Do you use some special renderer for that column? Try to do click on the cells from nearby columns (preferably w/o custom renderers).

Post Reply