Skip to content

Conversation

@laveena-en
Copy link
Contributor

Description

Added cypress tests to validate properties for the list widget on the property pane under Content.

Type of change

Cypress automation test-cases.

How Has This Been Tested?

  • Cypress

Test Plan

Add Testsmith test cases links that relate to this PR

Checklist:

Dev activity

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • PR is being merged under a feature flag

QA activity:

  • Test plan has been approved by relevant developers
  • Test plan has been peer reviewed by QA
  • Cypress test cases have been added and approved by either SDET or manual QA
  • Organized project review call with relevant stakeholders after Round 1/2 of QA
  • Added Test Plan Approved label after reveiwing all Cypress test

@welcome
Copy link

welcome bot commented Jan 6, 2023

Welcome to the Appsmith community! Thank you for your first pull request and making this project better. 🤗 Please make sure that you raise a review request so your code change does not go unnoticed.

@vercel
Copy link

vercel bot commented Jan 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
appsmith ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 5, 2023 at 3:51PM (UTC)

@laveena-en laveena-en added List Widget Issues related to the list widget Test Plan Approved Manual/Cypress tests covers changes made on the PR. Else, add skip-testPlan label if not applicable labels Jan 6, 2023
@Aishwarya-U-R
Copy link
Contributor

Test Plan Approved to be added once review complete & approval received from your reviewer.

@Aishwarya-U-R Aishwarya-U-R removed the Test Plan Approved Manual/Cypress tests covers changes made on the PR. Else, add skip-testPlan label if not applicable label Jan 6, 2023
@laveena-en
Copy link
Contributor Author

/ok-to-test sha=b8597a0

@github-actions
Copy link

github-actions bot commented Jan 6, 2023

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3854010578.
Workflow: Appsmith External Integration Test Workflow.
Commit: b8597a0.
PR: 19532.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=19532&runId=3854010578_1

@laveena-en laveena-en changed the title List widget UI property pane test cases chore: List widget UI property pane test cases Jan 6, 2023
@github-actions github-actions bot added the skip-changelog Adding this label to a PR prevents it from being listed in the changelog label Jan 6, 2023
@github-actions
Copy link

github-actions bot commented Jan 6, 2023

The following are new failures, please fix them before merging the PR cypress/integration/Smoke_TestSuite/ClientSideTests/VisualTests/JSEditorIndent_spec.js
cypress/integration/Smoke_TestSuite/ClientSideTests/VisualTests/WidgetsLayout_spec.js
cypress/integration/Smoke_TestSuite/ClientSideTests/Widgets/List/List_v1_Spec.ts
cypress/integration/Smoke_TestSuite/ServerSideTests/JsFunctionExecution/JSFunctionExecution_spec.ts

@github-actions
Copy link

github-actions bot commented Jan 6, 2023

The following are new failures, please fix them before merging the PR cypress/integration/Smoke_TestSuite_Fat/ClientSideTests/Refactoring/Refactoring_spec.ts

@github-actions
Copy link

github-actions bot commented Jan 9, 2023

The following are new failures, please fix them before merging the PR cypress/integration/Smoke_TestSuite/ClientSideTests/VisualTests/JSEditorIndent_spec.js
cypress/integration/Smoke_TestSuite/ClientSideTests/VisualTests/WidgetsLayout_spec.js
cypress/integration/Smoke_TestSuite/ClientSideTests/Widgets/List/List_v1_Spec.ts
cypress/integration/Smoke_TestSuite/ServerSideTests/JsFunctionExecution/JSFunctionExecution_spec.ts

@laveena-en
Copy link
Contributor Author

/ok-to-test sha=ee99793

@github-actions
Copy link

github-actions bot commented Jan 9, 2023

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3871474544.
Workflow: Appsmith External Integration Test Workflow.
Commit: ee99793.
PR: 19532.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=19532&runId=3871474544_1

@github-actions
Copy link

github-actions bot commented Jan 9, 2023

The following are new failures, please fix them before merging the PR cypress/integration/Smoke_TestSuite/ClientSideTests/Autocomplete/Autocomplete_JS_spec.ts
cypress/integration/Smoke_TestSuite/ClientSideTests/Git/GitSync/GitBugs_spec.js
cypress/integration/Smoke_TestSuite/ClientSideTests/Widgets/List/List_v1_Spec.ts
cypress/integration/Smoke_TestSuite/ServerSideTests/GenerateCRUD/Postgres2_Spec.ts
cypress/integration/Smoke_TestSuite/ServerSideTests/JsFunctionExecution/JSFunctionExecution_spec.ts

@github-actions
Copy link

This PR has not seen activitiy for a while. It will be closed in 7 days unless further activity is detected.

@github-actions github-actions bot added the Stale label Jan 16, 2023
Signed-off-by: Laveena Enid <laveena@appsmith.com>
@laveena-en
Copy link
Contributor Author

/ok-to-test sha=a0ded80

@github-actions
Copy link

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3965884582.
Workflow: Appsmith External Integration Test Workflow.
Commit: a0ded80.
PR: 19532.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=19532&runId=3965884582_1

@github-actions
Copy link

The following are new failures, please fix them before merging the PR cypress/integration/Smoke_TestSuite/ClientSideTests/Onboarding/GuidedTour_spec.js cypress/integration/Smoke_TestSuite/ClientSideTests/Widgets/List/List_v1_Spec.ts

@github-actions
Copy link

The following are new failures, please fix them before merging the PR cypress/integration/Smoke_TestSuite/ClientSideTests/Onboarding/GuidedTour_spec.js cypress/integration/Smoke_TestSuite/ClientSideTests/Widgets/List/List_v1_Spec.ts cypress/integration/Smoke_TestSuite/ClientSideTests/Widgets/List/List_v1_Spec.ts

1 similar comment
@github-actions
Copy link

The following are new failures, please fix them before merging the PR cypress/integration/Smoke_TestSuite/ClientSideTests/Onboarding/GuidedTour_spec.js cypress/integration/Smoke_TestSuite/ClientSideTests/Widgets/List/List_v1_Spec.ts cypress/integration/Smoke_TestSuite/ClientSideTests/Widgets/List/List_v1_Spec.ts

@github-actions github-actions bot removed the Stale label Jan 20, 2023
it("1. Validate if the 'items', 'server-side pagination', 'Visible', 'Animate Loading' and 'OnListItemClick' properties are present in the property pane", () => {
_.ee.SelectEntityByName("List1", "Widgets");
_.agHelper.AssertElementVisible(_.locators._listWidgetItemsDatalabel);
_.agHelper.AssertElementVisible(_.locators._listWidgetPaginationlabel);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you try - _.agHelper.AssertContains('Visible', 'exists', 'label') & if this works - remove the locators defined.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mentioned utility worked, refactored it. Resolved in 54dacc4.

_.agHelper.AssertElementVisible(_.locators._listWidgetVisiblelabel);
_.agHelper.AssertElementVisible(_.locators._listWidgetAnimateLoadinglabel);
_.agHelper.AssertElementVisible(_.locators._listWidgetClickEventlabel);
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Only one ''it' function. Is that all?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The PR was for adding basic test cases for testing property pane, these statements were consolidated into a single 'it' function as per the review comment https://github.com/appsmithorg/appsmith/pull/19532/files/b8597a0caddafb18248e9828e9b4f02da0a5db19#r1063383684

@laveena-en
Copy link
Contributor Author

/ok-to-test sha=54dacc4

@github-actions
Copy link

github-actions bot commented Feb 5, 2023

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4097341680.
Workflow: Appsmith External Integration Test Workflow.
Commit: 54dacc4.
PR: 19532.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=19532&runId=4097341680_1

@github-actions
Copy link

github-actions bot commented Feb 5, 2023

The following are new failures, please fix them before merging the PR

@github-actions
Copy link

github-actions bot commented Feb 5, 2023

The following are new failures, please fix them before merging the PR cypress/integration/Regression_TestSuite/ClientSideTests/VisualTests/AppPageLayout_spec.js
cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/List/List_v1_Spec.ts

@github-actions
Copy link

github-actions bot commented Feb 6, 2023

The following are new failures, please fix them before merging the PR

@github-actions
Copy link

github-actions bot commented Feb 6, 2023

The following are new failures, please fix them before merging the PR cypress/integration/Regression_TestSuite/ClientSideTests/VisualTests/AppPageLayout_spec.js
cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/List/List_v1_Spec.ts

_.agHelper.AssertContains("Server Side Pagination", "exist", "label");
_.agHelper.AssertContains("Visible", "exist", "label");
_.agHelper.AssertContains("Animate Loading", "exist", "label");
_.agHelper.AssertContains("onListItemClick", "exist", "label");
Copy link
Contributor

Choose a reason for hiding this comment

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

Add few more validations into the spec & then this can be run & merged.
The written case looks ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

List Widget Issues related to the list widget skip-changelog Adding this label to a PR prevents it from being listed in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants