-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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: updated tests by replacing external APIs #32718
Conversation
WalkthroughWalkthroughThe recent changes aim to enhance test scripts for mobile responsiveness and widget functionality while transitioning from external to internal URLs in test and fixture files. These modifications seek to bolster reliability and control over test environments by utilizing local server endpoints. Changes
Possibly related issues
These changes focus on ensuring the test environment reflects the latest application and infrastructure updates, potentially resolving issues related to testing consistency and reliability. Recent Review DetailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Files skipped from review as they are similar to previous changes (1)
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/8717154087. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/8717154087. |
/ci-test-limit |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/8717402322. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/8717402322. |
/ci-test-limit |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/8718022139. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/8718022139. |
/ci-test-limit |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/8718533434. |
/ci-test-limit |
1 similar comment
/ci-test-limit |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/8718577865. |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/8718582234. |
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: 1
app/client/cypress/limited-tests.txt
Outdated
cypress/e2e/Regression/ClientSide/Widgets/Iframe/Iframe_onSrcDocChange_spec.js | ||
cypress/e2e/Regression/ClientSide/Widgets/Iframe/Iframe_spec.js | ||
cypress/e2e/Regression/ServerSide/ApiTests/API_Bugs_Spec.js | ||
cypress/e2e/Regression/ClientSide/Widgets/ListV2/ListV2_SerververSide_spec.js |
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.
Fix the typo in the spec name.
- ListV2_SerververSide_spec.js
+ ListV2_ServerSide_spec.js
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
cypress/e2e/Regression/ClientSide/Widgets/ListV2/ListV2_SerververSide_spec.js | |
cypress/e2e/Regression/ClientSide/Widgets/ListV2/ListV2_ServerSide_spec.js |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/8718533434. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/8718577865. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/8718582234. |
@@ -137,8 +136,8 @@ describe( | |||
agHelper.AssertElementVisibility(locators._modal); | |||
|
|||
//Verify that a fixed canvas size is visible when height is selected as Fixed | |||
agHelper.AssertProperty(locators._modal, "offsetHeight", 1094); | |||
agHelper.AssertProperty(locators._modal, "offsetWidth", 456); | |||
// agHelper.AssertProperty(locators._modal, "offsetHeight", 1094); |
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.
let's remove these
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.
done
app/client/cypress/limited-tests.txt
Outdated
cypress/e2e/Regression/ServerSide/ApiTests/API_Bugs_Spec.js | ||
cypress/e2e/Regression/ClientSide/Widgets/ListV2/ListV2_SerververSide_spec.js | ||
cypress/e2e/Regression/ClientSide/Widgets/TableV1/Table_Column_Resize_spec.js | ||
cypress/e2e/Regression/ClientSide/Widgets/TableV2/TableV2_Column_Resize_spec.js |
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.
remember to revert limited test file before merge
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.
done
"source": "https:https://www.example.com", | ||
"source": "http:https://host.docker.internal:8000/a.txt", |
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 don't think this works.
- On CI, port 8000 is bound to the Cloud services container, not TED.
- The
a.txt
file doesn't exist in TED anymore.
Am I missing something? 🤔
replaced some external APIs with ted APIs
Summary by CodeRabbit
offsetHeight
andoffsetWidth
in the test case related to a fixed canvas size being visible when height is selected as Fixed.API_Bugs_Spec.js
file.Warning
The provided command lacks proper tags. Please modify PR body, specifying the tags you want to include or use
/ok-to-test tags="@tag.All"
to run all specs.Explore the tags documentation here