test: updated helper for airgap view permission#35627
test: updated helper for airgap view permission#35627NandanAnantharamu merged 1 commit intoreleasefrom
Conversation
WalkthroughThe recent changes to the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant AggregateHelper
participant Environment
User->>AggregateHelper: Call VisitNAssert(apiToValidate)
AggregateHelper->>Environment: Check AIRGAPPED status
alt AIRGAPPED is true
AggregateHelper->>User: No actions needed (air-gapped)
else AIRGAPPED is false
AggregateHelper->>User: Proceed with actions based on apiToValidate
end
Poem
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 Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- app/client/cypress/support/Pages/AggregateHelper.ts (1 hunks)
Additional context used
Path-based instructions (1)
app/client/cypress/support/Pages/AggregateHelper.ts (1)
Pattern
app/client/cypress/**/**.*: Review the following e2e test code written using the Cypress test library. Ensure that:
- Follow best practices for Cypress code and e2e automation.
- Avoid using cy.wait in code.
- Avoid using cy.pause in code.
- Avoid using agHelper.sleep().
- Use locator variables for locators and do not use plain strings.
- Use data-* attributes for selectors.
- Avoid Xpaths, Attributes and CSS path.
- Avoid selectors like .btn.submit or button[type=submit].
- Perform logins via API with LoginFromAPI.
- Perform logout via API with LogOutviaAPI.
- Perform signup via API with SignupFromAPI.
- Avoid using it.only.
- Avoid using after and aftereach in test cases.
- Use multiple assertions for expect statements.
- Avoid using strings for assertions.
- Do not use duplicate filenames even with different paths.
- Avoid using agHelper.Sleep, this.Sleep in any file in code.
Additional comments not posted (1)
app/client/cypress/support/Pages/AggregateHelper.ts (1)
1763-1764: Good simplification of logic inVisitNAssert.The removal of the specific check for "getAllWorkspaces" and the sleep function improves clarity and performance. Ensure that this change does not affect any other part of the codebase that might rely on the previous behavior.
AirGap test for CE
/ok-to-test tags="@tag.All"
EE PR: https://github.com/appsmithorg/appsmith-ee/pull/4726
Summary by CodeRabbit
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/10352641842
Commit: c09ed04
Cypress dashboard.
Tags:
@tag.AllSpec:
Mon, 12 Aug 2024 14:28:39 UTC