-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
test: Cypress | Replace static with Dynamic waits - Part II #29557
Conversation
WalkthroughWalkthroughThe changes across various Cypress end-to-end test files reflect a shift towards more reliable and efficient test execution. Explicit sleep commands have been removed in favor of better asynchronous handling, and direct calls to Cypress commands have been replaced with custom helper methods. Additionally, there's a restructuring of data source creation and query execution logic, particularly for Postgres databases, and updates to file paths for test specs. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on X ? TipsChat with CodeRabbit Bot (
|
/ci-test-limit |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7186022282. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7186022282.
To know the list of identified flaky tests - Refer here |
/ci-test-limit |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7186406622. |
/ci-test-limit |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7186512678. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7186406622. |
/ci-test-limit |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7186678241. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7186512678. |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7186768697. |
app/client/cypress/e2e/Regression/ClientSide/Git/ExistingApps/v1.9.24/DSCrudAndBindings_Spec.ts
Outdated
Show resolved
Hide resolved
app/client/cypress/e2e/Regression/ClientSide/Templates/ForkTemplateToGitConnectedApp.js
Outdated
Show resolved
Hide resolved
app/client/cypress/e2e/Regression/ClientSide/Templates/ForkTemplateToGitConnectedApp.js
Outdated
Show resolved
Hide resolved
/ci-test-limit |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7186819081. |
/ci-test-limit |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7186918274. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7186678241. To know the list of identified flaky tests - Refer here |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7193093670. |
/ci-test-limit |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7193831006. |
/ci-test-limit |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7193897067. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7193831006. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7193897067. |
/ci-test-limit |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7194209121. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7194209121. |
/ci-test-limit |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7194488281. |
app/client/cypress/e2e/Regression/ClientSide/Widgets/ListV2/Listv2_BasicServerSideData_spec.js
Show resolved
Hide resolved
app/client/cypress/e2e/Regression/ClientSide/Widgets/ListV2/Listv2_BasicServerSideData_spec.js
Show resolved
Hide resolved
app/client/cypress/e2e/Regression/ClientSide/Widgets/ListV2/Listv2_BasicServerSideData_spec.js
Show resolved
Hide resolved
app/client/cypress/e2e/Regression/ClientSide/Widgets/ListV2/Listv2_BasicServerSideData_spec.js
Show resolved
Hide resolved
app/client/cypress/e2e/Regression/ClientSide/Widgets/ListV2/Listv2_BasicServerSideData_spec.js
Show resolved
Hide resolved
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7194488281. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
_.dataSources.EnterQuery("SELECT * FROM users LIMIT 20;"); | ||
it("6. no of items rendered should be equal to page size", () => { | ||
_.dataSources.CreateDataSource("Postgres"); | ||
cy.wait(1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Aishwarya-U-R @sarojsarab Any reason we left the static wait in this test case even though we refactored it to remove external dependencies?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This spec was only targeted for removing 'Users' table dependency in this PR. Static wait removal will be done when the spec is picked for wait removal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its also mentioned in PR desc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did read the PR description, but I didn't completely understand why we didn't just remove the "static wait" when we were already editing the test case. This way, we wouldn't have to re-visit this particular spec, right? Was there a lot of added complexity in removing the wait here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, will do it from next PR.
Description
- /Apps/CommunityIssues_Spec.ts
- /Apps/[EchoApiCMS_spec.js
- /Apps/ImportExportForkApplication_spec.js
- /Apps/MongoDBShoppingCart_spec.ts
- /Apps/PgAdmin_spec.js
- /Apps/PromisesApp_spec.js
- ClientSide/Widgets/ListV2/ListV2_PageNo_PageSize_spec.js
- ClientSide/Widgets/ListV2/Listv2_BasicServerSideData_spec.js
Type of change
Testing
How Has This Been Tested?
Checklist:
QA activity:
Test Plan Approved
label after Cypress tests were reviewedSummary by CodeRabbit