ToolJet/cypress-tests/cypress/constants/texts/version.js
Srimanitejas123 956f345eb9
Updated private and public app spec (#11602)
* Updated app version spec

* Updated app editor spec

* Updated app editor spec

* Updated app editor spec

* Updated apps spec

* Updated app spec

* changes on app spec

* Updated version spec

* App import and export spec

* Updated apps spec based on review commends

* updated app import and export spec based on review comments

* Updated appEditor and privateAndpublic app spec based on review commends

* Updated version and app import and export spec based on review commends

* fixed selector for query search bar

* Updated private and public app spec based on review comments

* updated private ad public app based on review comments

* Updated version spec

* Updated according to review comment

* Updated based on review comments

* Updated based on review comments

* removed commented lines

* Updated api commands

* Updated app import export spec

* updated app import and export with tj_db

* Updated version spec

* Updated app import and export spec

---------

Co-authored-by: Sri mani Teja s <[email protected]>
Co-authored-by: Ajith KV <[email protected]>
2025-01-07 12:20:36 +05:30

46 lines
1.5 KiB
JavaScript

import { cyParamName } from "Selectors/common";
export const editVersionText = {
editVersionTitle: "Edit Version",
saveButton: "Save",
VersionNameUpdatedToastMessage: "Version name updated",
};
export const deleteVersionText = {
deleteModalText: (text) => {
return `Are you sure you want to delete this version - ${cyParamName(
text
)}?`;
},
deleteToastMessage: (version) => {
return `Version - ${cyParamName(version)} Deleted`;
},
};
export const onlydeleteVersionText = {
deleteModalText: (text) => {
return `Are you sure you want to delete this version - ${cyParamName(
text
)}?`;
},
deleteToastMessage: (version) => {
return `Cannot delete only version of app`;
},
};
export const releasedVersionText = {
cannotUpdateReleasedVersionToastMessage:
"You cannot update a released version",
releasedToastMessage: (version) => {
return `Version ${cyParamName(version)} released`;
},
releasedModalText:
"You cannot make changes to a version that has already been released. Create a new version or switch to a different version if you want to make changes.",
cannotDeleteReleasedVersionToastMessage:
"You cannot delete a released version",
releasedAppText:
"App cannot be edited after promotion. Please create a new version from Development to make any changes.",
releasedVersionConfirmText:
"Are you sure you want to release this version of the app?",
buttonReleaseApp: "Release App",
};