chore: un-skip IDE tests (#39729)
## Description Mocks a few heavy components that were causing a timeout for IDE tests in EE. EE PR for tests: https://github.com/appsmithorg/appsmith-ee/pull/6580 ## Automation /ok-to-test tags="@tag.IDE" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/13855339158> > Commit: 205a69f68e931de4f743b220e7b301a5f0bcfec5 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=13855339158&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.IDE` > Spec: > <hr>Fri, 14 Mar 2025 11:40:35 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Tests** - Improved test coverage for our code editor interfaces with enhanced component isolation through mocking. - Reactivated previously skipped tests to ensure robust quality validation. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
parent
5a5a0e23c7
commit
5b3ef55b32
|
|
@ -9,10 +9,17 @@ import { EditorEntityTab, EditorViewMode } from "IDE/Interfaces/EditorTypes";
|
|||
import { PageFactory } from "test/factories/PageFactory";
|
||||
import { JSObjectFactory } from "test/factories/Actions/JSObject";
|
||||
|
||||
// Mock the LazyCodeEditor component
|
||||
jest.mock("components/editorComponents/LazyCodeEditor/index", () => {
|
||||
return {
|
||||
__esModule: true,
|
||||
default: () => <div data-testid="t--code-editor" />,
|
||||
};
|
||||
});
|
||||
|
||||
const basePageId = "0123456789abcdef00000000";
|
||||
|
||||
// eslint-disable-next-line jest/no-disabled-tests
|
||||
describe.skip("IDE Render: JS", () => {
|
||||
describe("IDE Render: JS", () => {
|
||||
describe("JS Blank State", () => {
|
||||
it("Renders Fullscreen Blank State", async () => {
|
||||
const { findByText, getByRole, getByText } = render(
|
||||
|
|
|
|||
|
|
@ -15,8 +15,25 @@ import { GoogleSheetFactory } from "test/factories/Actions/GoogleSheetFactory";
|
|||
|
||||
const basePageId = "0123456789abcdef00000000";
|
||||
|
||||
// eslint-disable-next-line jest/no-disabled-tests
|
||||
describe.skip("IDE URL rendering of Queries", () => {
|
||||
// Mock the LazyCodeEditor component
|
||||
jest.mock("components/editorComponents/LazyCodeEditor/index", () => {
|
||||
return {
|
||||
__esModule: true,
|
||||
default: () => <div data-testid="t--code-editor" />,
|
||||
};
|
||||
});
|
||||
// Mock Visualization component
|
||||
jest.mock(
|
||||
"PluginActionEditor/components/PluginActionResponse/components/Visualization/Visualization.tsx",
|
||||
() => {
|
||||
return {
|
||||
__esModule: true,
|
||||
Visualization: () => <div data-testid="t--mock-visualization" />,
|
||||
};
|
||||
},
|
||||
);
|
||||
|
||||
describe("IDE URL rendering of Queries", () => {
|
||||
describe("Query Blank State", () => {
|
||||
it("Renders Fullscreen Blank State", async () => {
|
||||
const { findByText, getByRole, getByText } = render(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user