|
272 | 272 | ...addCustomField('one2many', 'checkbox', 'Products', true),
|
273 | 273 | {
|
274 | 274 | content: "Change Option 1 label",
|
275 |
| - trigger: 'we-list table input:eq(0)', |
| 275 | + trigger: 'we-list:visible table input:eq(0)', |
276 | 276 | run: "edit Iphone",
|
277 | 277 | }, {
|
278 | 278 | content: "Change Option 2 label",
|
279 |
| - trigger: 'we-list table input:eq(1)', |
| 279 | + trigger: 'we-list:visible table input:eq(1)', |
280 | 280 | run: "edit Galaxy S",
|
281 | 281 | },{
|
282 | 282 | content: "Change first Option 3 label",
|
283 |
| - trigger: 'we-list table input:eq(2)', |
| 283 | + trigger: 'we-list:visible table input:eq(2)', |
284 | 284 | run: "edit Xperia",
|
285 | 285 | },
|
286 | 286 | {
|
287 | 287 | // TODO: Fix code to avoid this behavior
|
288 | 288 | content: "Click outside focused element before click on add new checkbox otherwise button does'nt work",
|
289 |
| - trigger: "we-list we-title", |
| 289 | + trigger: "we-list:visible we-title", |
290 | 290 | run: "click",
|
291 | 291 | },
|
292 | 292 | {
|
293 | 293 | content: "Click on Add new Checkbox",
|
294 |
| - trigger: 'we-list we-button.o_we_list_add_optional', |
| 294 | + trigger: 'we-list:visible we-button.o_we_list_add_optional', |
295 | 295 | run: "click",
|
296 | 296 | },
|
297 | 297 | {
|
298 | 298 | content: "Change added Option label",
|
299 |
| - trigger: 'we-list table input:eq(3)', |
| 299 | + trigger: 'we-list:visible table input:eq(3)', |
300 | 300 | run: "edit Wiko Stairway",
|
301 | 301 | }, {
|
302 | 302 | content: "Check the resulting field",
|
|
321 | 321 | ...addCustomField('selection', 'radio', 'Service', true),
|
322 | 322 | {
|
323 | 323 | content: "Change Option 1 label",
|
324 |
| - trigger: 'we-list table input:eq(0)', |
| 324 | + trigger: 'we-list:visible table input:eq(0)', |
325 | 325 | run: "edit After-sales Service",
|
326 | 326 | }, {
|
327 | 327 | content: "Change Option 2 label",
|
328 |
| - trigger: 'we-list table input:eq(1)', |
| 328 | + trigger: 'we-list:visible table input:eq(1)', |
329 | 329 | run: "edit Invoicing Service",
|
330 | 330 | }, {
|
331 | 331 | content: "Change first Option 3 label",
|
332 |
| - trigger: 'we-list table input:eq(2)', |
| 332 | + trigger: 'we-list:visible table input:eq(2)', |
333 | 333 | run: "edit Development Service",
|
334 | 334 | },
|
335 | 335 | {
|
|
344 | 344 | run: "click",
|
345 | 345 | }, {
|
346 | 346 | content: "Change last Option label",
|
347 |
| - trigger: 'we-list table input:eq(3)', |
| 347 | + trigger: 'we-list:visible table input:eq(3)', |
348 | 348 | run: "edit Management Service",
|
349 | 349 | }, {
|
350 | 350 | content: "Mark the field as not required",
|
|
373 | 373 | // Customize custom selection field
|
374 | 374 | {
|
375 | 375 | content: "Change Option 1 Label",
|
376 |
| - trigger: 'we-list table input:eq(0)', |
| 376 | + trigger: 'we-list:visible table input:eq(0)', |
377 | 377 | run: "edit Germany",
|
378 | 378 | }, {
|
379 | 379 | content: "Change Option 2 Label",
|
380 |
| - trigger: 'we-list table input:eq(1)', |
| 380 | + trigger: 'we-list:visible table input:eq(1)', |
381 | 381 | run: "edit Belgium",
|
382 | 382 | }, {
|
383 | 383 | content: "Change first Option 3 label",
|
384 |
| - trigger: 'we-list table input:eq(2)', |
| 384 | + trigger: 'we-list:visible table input:eq(2)', |
385 | 385 | run: "edit France",
|
386 | 386 | },
|
387 | 387 | {
|
|
403 | 403 | },
|
404 | 404 | {
|
405 | 405 | content: "Change last Option label",
|
406 |
| - trigger: 'we-list table input:eq(3)', |
| 406 | + trigger: 'we-list:visible table input:eq(3)', |
407 | 407 | // TODO: Fix code to avoid blur event
|
408 | 408 | run: "edit Canada",
|
409 | 409 | }, {
|
410 | 410 | content: "Remove Germany Option",
|
411 |
| - trigger: '.o_we_select_remove_option:eq(0)', |
| 411 | + trigger: '.o_we_select_remove_option:visible:eq(0)', |
412 | 412 | run: "click",
|
413 | 413 | },
|
414 | 414 | {
|
|
423 | 423 | run: "click",
|
424 | 424 | }, {
|
425 | 425 | content: "Change last option label with a number",
|
426 |
| - trigger: 'we-list table input:eq(3)', |
| 426 | + trigger: 'we-list:visible table input:eq(3)', |
427 | 427 | run: "edit 44 - UK",
|
428 | 428 | }, {
|
429 | 429 | content: "Check that the input value is the full option value",
|
|
0 commit comments