我有一个数据表表单,其中包括几个项目,例如textfield
、datefield
和combobox
。我将如何使用 Siesta 进行选择项,combobox
并且我需要将 Siesta 等待时间设置为超过 30000 毫秒,因为数据是通过ajax
请求加载到combobox
.
我使用的一个片段失败了;
t.it('Should create a new registration', function (t) {
t.chain(
{click: '>> button[text=New]'},
{waitForCQ: 'regdata[title=New Registration]'},
{click: '>> firstnamefld[xtype=firstnamefld]'},
{type: 'Siesta Reg', target: '>> firstnamefld[xtype=firstnamefld]'},
{click: '>> lastnamefld[xtype=lastnamefld]'},
{type: 'Test One', target: '>> lastnamefld[xtype=lastnamefld]'},
{click: '>> datefld[xtype=datefld]'},
{type: '11.10.2017', target: '>> checkinfld[xtype=checkinfld]'}, //Probably that's not correct way to choose date on datefield but it works
//Here is making ajax request to load data in combo.but Siesta isn't waiting for selection.
//I shouldn't use 'type' for this part but I couldn't find any proper property.
{click: '>> groupcombo[xtype=groupcombo]'},
{type: 'Group One', target: '>> groupcombo[xtype=groupcombo]'}