fix: broken integration test after fieldsets changes

This commit is contained in:
jamesread 2025-11-10 22:50:42 +00:00
parent 6a853d9c99
commit 1140453f30
1 changed files with 2 additions and 9 deletions

View File

@ -52,15 +52,8 @@ describe('config: multipleDropdowns', function () {
return url.includes('/actionBinding/') && url.includes('/argumentForm')
}), 8000)
// Wait for form elements to be rendered
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'))
const selects = await webdriver.findElements(By.css('main select'))
expect(selects).to.have.length(2)
expect(await selects[0].findElements(By.tagName('option'))).to.have.length(2)
expect(await selects[1].findElements(By.tagName('option'))).to.have.length(3)