-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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: fix flaky iconButton2 spec #33901
Conversation
WalkthroughThe changes to the Cypress tests involve updating the Changes
Sequence Diagram(s) (Beta)sequenceDiagram
participant User
participant IconButton
participant Browser
participant TestStub
User->>IconButton: Click on IconButton
IconButton->>Browser: window.open('https://host.docker:4200/', '_blank')
Browser->>TestStub: Trigger window.open stub
TestStub->>Browser: Prevent actual window opening
Browser-->>User: New window/tab is stubbed
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 (
|
/ci-test-limit |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/9327660161. |
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.
Actionable comments posted: 0
Outside diff range and nitpick comments (1)
app/client/cypress/e2e/Regression/ClientSide/Widgets/Others/IconButton_2_spec.ts (1)
Line range hint
29-54
: Consider converting these function expressions to arrow functions for consistency and to align with modern JavaScript practices.- function () { + () => {Also applies to: 17-290
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9327660161. |
/ci-test-limit runId=9327660161 |
15 similar comments
/ci-test-limit runId=9327660161 |
/ci-test-limit runId=9327660161 |
/ci-test-limit runId=9327660161 |
/ci-test-limit runId=9327660161 |
/ci-test-limit runId=9327660161 |
/ci-test-limit runId=9327660161 |
/ci-test-limit runId=9327660161 |
/ci-test-limit runId=9327660161 |
/ci-test-limit runId=9327660161 |
/ci-test-limit runId=9327660161 |
/ci-test-limit runId=9327660161 |
/ci-test-limit runId=9327660161 |
/ci-test-limit runId=9327660161 |
/ci-test-limit runId=9327660161 |
/ci-test-limit runId=9327660161 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/9328098185. |
/ci-test-limit runId=9327660161 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/9328099066. |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/9328100032. |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/9328099155. |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/9328100126. |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/9328100906. |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/9328100910. |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/9328100908. |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/9328101008. |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/9328101176. |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/9328101491. |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/9328101831. |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/9328102237. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9328100627. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9328100908. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9328101491. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9328101176. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9328102237. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9328101008. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9328100338. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9328100177. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9328100906. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9328099066. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9328100126. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9328100910. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9328101831. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9328100032. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9328100718. |
@@ -270,13 +270,22 @@ describe( | |||
propPane.ToggleJSMode("onClick", true); | |||
propPane.UpdatePropertyFieldValue( | |||
"onClick", | |||
`{{navigateTo('www.yahoo.com', {}, 'SAME_WINDOW');}}`, | |||
`{{navigateTo('https://host.docker:4200/', {}, 'NEW_WINDOW');}}`, |
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.
should we be hardcoding this URL? can we not take it from config file or something? @NandanAnantharamu
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.
the link doesnt matter what we enter as the call is intercepted it wont matter what we enter here. let me know if you still want me to change @ApekshaBhosale
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.
got it
RCA: exeternal website used in this case "Yahoo.com"
Solution:
so replacing third party url should fix our problem.
used stubbing option to validate the navigation to new window.