test: added test for incompatible file (#37323)
Added test for incompatible json file which validates error message. /ok-to-test tags="@tag.All" <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/11842679143> > Commit: e25dece2db1249fca257f089162faa5cdfaa85ae > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=11842679143&attempt=2" target="_blank">Cypress dashboard</a>. > Tags: `@tag.All` > Spec: > <hr>Fri, 15 Nov 2024 06:05:44 UTC <!-- end of auto-generated comment: Cypress test results --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new test suite to validate the partial import functionality, ensuring compatibility checks for JSON files. - Added a structured JSON file representing an application's configuration, including metadata, pages, and actions. - **Bug Fixes** - Implemented error message validation for importing incompatible JSON files. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: “NandanAnantharamu” <“nandan@thinkify.io”>
This commit is contained in:
parent
c70adf7440
commit
bbf298a20d
|
|
@ -0,0 +1,22 @@
|
|||
import {
|
||||
homePage,
|
||||
partialImportExport,
|
||||
agHelper,
|
||||
} from "../../../../support/Objects/ObjectsCore";
|
||||
|
||||
describe(
|
||||
"Partial import App",
|
||||
{ tags: ["@tag.ImportExport", "@tag.Git"] },
|
||||
() => {
|
||||
beforeEach(() => {
|
||||
partialImportExport.OpenImportModal();
|
||||
});
|
||||
|
||||
it("1. Verify Importing App into Page shows error message for incompatible json file ", () => {
|
||||
homePage.ImportApp("PartialImportAppNegative.json", "", true);
|
||||
agHelper.ValidateToastMessage(
|
||||
"Unable to import artifact in workspace The file is not compatible with the current partial import operation. Please check the file and try again.. {1}",
|
||||
);
|
||||
});
|
||||
},
|
||||
);
|
||||
550
app/client/cypress/fixtures/PartialImportAppNegative.json
Normal file
550
app/client/cypress/fixtures/PartialImportAppNegative.json
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user