Support Forum
I have a large test suite containing a number of tests. A sample test code is shown below.
t.chain(
{ waitForCQ : 'tabpanel'},
{ moveCursorTo : "#contentRegion igx-maintoolbar [itemId=menuButton] => .x-btn-icon-el", offset : [7, 6] },
{ waitFor : "Target" , args : "[itemId=adminButtons] => .x-menu-item-text" },
{ waitFor: 2000},
{ moveCursorTo : "[itemId=adminButtons] => .x-menu-item-text", offset : [29, 16] },
We are currently on Siesta 3.0.2 version. All the tests are working fine in my automated test environment. I upgraded Siesta to 4.4.3 and many of the tests ( similar to the one above ) are failing with the below message.
fail 1 - Waited too long for: componentQuery "tabpanel"
Failed assertion `waitForComponentQuery`
Condition was not fullfilled during 30000ms
Is there any easy fix for this? Changing the existing scripts is going to be a lot of work. Appreciate any help on this.
t.chain(
{ waitForCQ : 'tabpanel'},
{ moveCursorTo : "#contentRegion igx-maintoolbar [itemId=menuButton] => .x-btn-icon-el", offset : [7, 6] },
{ waitFor : "Target" , args : "[itemId=adminButtons] => .x-menu-item-text" },
{ waitFor: 2000},
{ moveCursorTo : "[itemId=adminButtons] => .x-menu-item-text", offset : [29, 16] },
We are currently on Siesta 3.0.2 version. All the tests are working fine in my automated test environment. I upgraded Siesta to 4.4.3 and many of the tests ( similar to the one above ) are failing with the below message.
fail 1 - Waited too long for: componentQuery "tabpanel"
Failed assertion `waitForComponentQuery`
Condition was not fullfilled during 30000ms
Is there any easy fix for this? Changing the existing scripts is going to be a lot of work. Appreciate any help on this.
describe('Automate create of first environment in the admin screen', function(t) {
t.it('Navigate to Environment and create new environment',function(t){
t.chain(
{ waitForCQ : 'tabpanel'},
{ moveCursorTo : "#contentRegion igx-maintoolbar [itemId=menuButton] => .x-btn-icon-el", offset : [7, 6] },
{ waitFor : "Target" , args : "[itemId=adminButtons] => .x-menu-item-text" },
{ waitFor: 2000},
{ moveCursorTo : "[itemId=adminButtons] => .x-menu-item-text", offset : [29, 16] },
{ waitFor: 3000},
{ waitFor : "Target" , args : "menuitem[text=Environments] => .x-menu-item-text" },
{ click : "menuitem[text=Environments] => .x-menu-item-text", offset : [26, 12] },
{ action : "click", target : "#contentRegion igx-listdevenvview panel igx-addbutton[text=New] => .x-btn-button", offset : [18, 2] },
{ action : "type", text : "SAGA_DEV" },
{ waitFor: 3000},
{ click : "#contentRegion igx-listdevenvview panel igx-editdevenv [itemId=devEnvTabPanel] panel[title=Details] form panel fieldcontainer[fieldLabel=Retention Period] [itemId=period] => .x-form-text", offset : [53, 13] },
{ click : "#contentRegion igx-listdevenvview panel igx-editdevenv [itemId=devEnvTabPanel] panel[title=Details] form panel fieldcontainer[fieldLabel=Retention Period] [itemId=period] => .x-form-spinner-up", offset : [19, 7] },
{ click : "#contentRegion igx-listdevenvview panel igx-savebutton[text=Save] => .saveButton", offset : [13, 10] },
{ waitFor : "Target" , args : "[itemId=ok] => .x-btn-button" },
{ click : "[itemId=ok] => .x-btn-button", offset : [37, 2] }
)
}
)
}
)
Last edited by chembali on Fri Feb 23, 2018 1:28 pm, edited 1 time in total.
Ok, not enough information to help you. Can you create a small self-contained test case, that will demonstrate the difference between Siesta versions?
Read the API documentation