You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The integration suite test for Heron pipeline 96 well spec/limber/heron_96_pipeline_spec.rb fails sometimes. It does a file name filtering on the table at this line:
fill_in('filterInput', with: file_prefix)
After the input, the table imports-table is re-created and the table found by the following becomes stale:
Because of the stale reference the assertion in the following line fails:
expect(table_wrapper).to have_content(file_prefix) # Delays while the AJAX fires
A solution should put a wait or check the re-rendering of the table after the fill_in('filterInput', with: file_prefix) call before getting a reference to the table using xpath.
psd-issuerbot
changed the title
[BUG] Integration suite test for the Heron pipeline 96 well does not wait for table re-rendering after filtering by file
Y24-476 - [BUG] Integration suite test for the Heron pipeline 96 well does not wait for table re-rendering after filtering by file
Nov 26, 2024
Describe the bug
The integration suite test for Heron pipeline 96 well
spec/limber/heron_96_pipeline_spec.rb
fails sometimes. It does a file name filtering on the table at this line:fill_in('filterInput', with: file_prefix)
After the input, the table
imports-table
is re-created and the table found by the following becomes stale:table_wrapper = first(:xpath, "//div[@id='imports-table']")
Because of the stale reference the assertion in the following line fails:
expect(table_wrapper).to have_content(file_prefix) # Delays while the AJAX fires
A solution should put a wait or check the re-rendering of the table after the
fill_in('filterInput', with: file_prefix)
call before getting a reference to the table using xpath.RT Ticket Number
N/A
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
The test was expected to either pass or fail consistently across different test runs.
Screenshots
See the following excerpt from the integration suite log:
Desktop (please complete the following information):
Observed with OS: Mac, Browser: Chrome, Environment: Training
Additional context
This was observed in Training environment but the same test was passed when run locally against Training.
Ref: Slack: https://psd-team.slack.com/archives/C07TRSCTA1Y/p1732553176354149
The text was updated successfully, but these errors were encountered: