Skip to content

Fix some intermittent test failures#2495

Merged
labkey-tchad merged 2 commits intorelease25.3-SNAPSHOTfrom
25.3_fb_variousTestFixes
Jun 18, 2025
Merged

Fix some intermittent test failures#2495
labkey-tchad merged 2 commits intorelease25.3-SNAPSHOTfrom
25.3_fb_variousTestFixes

Conversation

@labkey-tchad
Copy link
Member

Rationale

DomainFormPanel should wait for itself to finish loading.

org.openqa.selenium.NoSuchElementException: Unable to find element: css=.domain-form-manual-btn
within: DomainFormPanel [[FirefoxDriver: firefox on linux (d7d5a137-89c2-4fad-80fb-9b684befcdb9)] -> xpath: //div[contains(concat(' ',normalize-space(@class),' '), " domain-form-panel ")][.//*[contains(concat(' ',normalize-space(@class),' '), " domain-panel-title ")][starts-with(normalize-space(), "Fields")]]]
  [...]
  at app//org.labkey.test.components.domain.DomainFormPanel.clickManuallyDefineFields(DomainFormPanel.java:259)
  at app//org.labkey.test.components.domain.DomainFormPanel.manuallyDefineFields(DomainFormPanel.java:295)
  at app//org.labkey.test.tests.wnprc_purchasing.WNPRC_PurchasingTest.addExtensibleColumn(WNPRC_PurchasingTest.java:179)
  at app//org.labkey.test.tests.wnprc_purchasing.WNPRC_PurchasingTest.doSetup(WNPRC_PurchasingTest.java:139)
  at app//org.labkey.test.tests.wnprc_purchasing.WNPRC_PurchasingTest.setupProject(WNPRC_PurchasingTest.java:119)

Moving the "Data Views" webpart to the top of the page is causing thumbnail popups to block occasional clicks.

org.openqa.selenium.ElementClickInterceptedException: Element <a class="dropdown-toggle fa fa-caret-down" href="#"> is not clickable at point (973,508) because another element <div class="data-views-tip-content"> obscures it
  [...]
  at app//org.labkey.test.util.PortalHelper.checkWebpartPermission(PortalHelper.java:469)
  at app//org.labkey.test.tests.SimpleModuleTest.doTestCustomFolder(SimpleModuleTest.java:472)
  at app//org.labkey.test.tests.SimpleModuleTest.doVerifySteps(SimpleModuleTest.java:262)
  at app//org.labkey.test.tests.SimpleModuleTest.testSteps(SimpleModuleTest.java:254)

Related Pull Requests

  • N/A

Changes

  • Wait for DomainFormPanel to finish loading
  • In SimpleModuleTest leave the "Data Views" webpart at the bottom to avoid ElementClickInterceptedException
  • Various minor code cleanup

`NoSuchElementException: Unable to find element: css=.domain-form-manual-btn`
`ElementClickInterceptedException` in SimpleModuleTest
@labkey-tchad labkey-tchad requested review from a team and labkey-danield and removed request for a team June 13, 2025 23:33
@labkey-tchad labkey-tchad merged commit a1d682f into release25.3-SNAPSHOT Jun 18, 2025
6 of 7 checks passed
@labkey-tchad labkey-tchad deleted the 25.3_fb_variousTestFixes branch June 18, 2025 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants