create multiple forms and bulk delete them from form list page#1757
Conversation
WalkthroughThe recent updates introduce a new Cypress end-to-end test for bulk deleting forms and refactor existing form tests to use reusable functions for form creation and deletion. Custom Cypress commands were added to abstract these actions, enhancing code readability and maintainability. Additionally, a minor syntax correction was made in the support file. Changes
Sequence Diagram(s) (Beta)sequenceDiagram
participant User
participant Cypress
participant App
User->>Cypress: Run bulkDeleteForms.cy.js
Cypress->>App: Create multiple forms
App-->>Cypress: Forms created
Cypress->>App: Bulk delete forms
App-->>Cypress: Forms deleted
Cypress-->>User: Test results
User->>Cypress: Run duplicateForm.cy.js
Cypress->>App: createNewForm()
App-->>Cypress: Form created
Cypress->>App: deleteForm()
App-->>Cypress: Form deleted
Cypress-->>User: Test results
Recent Review DetailsConfiguration used: CodeRabbit UI Files selected for processing (4)
Files skipped from review due to trivial changes (1)
Files skipped from review as they are similar to previous changes (2)
Additional comments not posted (2)
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 your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Actionable comments posted: 1
Outside diff range and nitpick comments (1)
tests/cypress/e2e/Forms/duplicateForm.cy.js (1)
Line range hint
1-34: Correct the class selector typo in the duplication step to ensure the correct element is targeted.- cy.get('.row-actions .duplicate .frm-trash-link').should('be.visible').click({ force: true }); + cy.get('.row-actions .duplicate .frm-duplicate-link').should('be.visible').click({ force: true });
No description provided.