Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky domains.js and managed_ingestion.js tests #8492

Conversation

kkorchak
Copy link
Contributor

managed_ingestion.js - We use 30 seconds "Succeeded" search timeout for ingestion and I've reproduced the timeout reach few times locally, other times ingestion took 27-29 seconds(close to timeout limit). I've increased the timeout to 40 seconds in attempt to fix flakyness.

domains.js - this test fails after reaching element search timeout after user enters search keyword. In attempt to fix this I've used .type() method for whole search text and not just 'customers' after using .invoke('va', 'text')

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added the smoke_test Contains changes related to smoke tests label Jul 24, 2023
@@ -23,7 +23,7 @@ describe("add remove domain", () => {
cy.waitTextVisible("Add assets")
cy.clickOptionWithText("Add assets")
cy.get(".ant-modal-content").within(() => {
cy.get('[data-testid="search-input"]').click().invoke("val", "cypress_project.jaffle_shop.").type("customer")
cy.get('[data-testid="search-input"]').type("cypress_project.jaffle_shop.customer")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question - Can you elaborate on why this helps the test to pass?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
smoke_test Contains changes related to smoke tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants