fix: broken integration test after fieldsets changes
This commit is contained in:
parent
6a853d9c99
commit
1140453f30
|
|
@ -52,14 +52,7 @@ describe('config: multipleDropdowns', function () {
|
||||||
return url.includes('/actionBinding/') && url.includes('/argumentForm')
|
return url.includes('/actionBinding/') && url.includes('/argumentForm')
|
||||||
}), 8000)
|
}), 8000)
|
||||||
|
|
||||||
// Wait for form elements to be rendered
|
const selects = await webdriver.findElements(By.css('main select'))
|
||||||
await webdriver.wait(new Condition('wait for form elements', async () => {
|
|
||||||
const selects = await webdriver.findElements(By.tagName('select'))
|
|
||||||
return selects.length >= 2
|
|
||||||
}), 5000)
|
|
||||||
|
|
||||||
// Find the select elements after the wait condition
|
|
||||||
const selects = await webdriver.findElements(By.tagName('select'))
|
|
||||||
|
|
||||||
expect(selects).to.have.length(2)
|
expect(selects).to.have.length(2)
|
||||||
expect(await selects[0].findElements(By.tagName('option'))).to.have.length(2)
|
expect(await selects[0].findElements(By.tagName('option'))).to.have.length(2)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue