ToolJet/cypress/constants/texts/button.js
Ajith KV a71c7b8a7f
fix: failing button widget cypress test (#3238)
* Updated cypress test for button widget

* Updated the custom command for create app

* Added data-cy attributes for elements

* Updated common selectors file
2022-06-15 15:57:03 +05:30

47 lines
No EOL
1.5 KiB
JavaScript

export const buttonText={
widgetName: "Button",
buttonProperties: "Properties",
buttonStyles: "Styles",
buttonName: "button1",
propertiesElements:{
propertiesAccordion: "Properties",
buttonTextLabel: "Button Text",
buttonTextInput: "Button",
loadingState: "Loading State",
eventsAccordion: "Events",
addEventListner: "+ Add event handler",
noEventHandler: "This button doesn't have any event handlers",
generalAccordion: "General",
layoutAccordion: "Layout",
showOnDesktopLabel: "Show on desktop",
showOnMobileLabel: "Show on mobile",
documentationLink: "Button documentation",
},
fxButton:"Fx",
savedToast: "Saved!",
invalidButtonName: "New Button",
buttonNameErrToast: "Invalid widget name. Should be unique and only include letters, numbers and underscore.",
validButtonName: "button",
buttonText:"Send",
trueText: "true",
falseText:"false",
eventLabel: "Event",
actionLabel: "Action",
actionOption: "Action options",
messageLabel: "Message",
alertTypeLabel: "Alert Type",
newMessage: " new toast",
newToast: "Hello world new toast",
stylesElements:{
backgroundColorLabel: "Background color",
textColorLabel: "Text color",
loaderColorLabel: "Loader color",
visibilityLabel: "Visibility",
disableLabel: "Disable",
borderRadiusLabel: "Border radius",
},
backgroundColorInput: "#375FCF",
textColorInput: "#fff",
loaderColorInput: "#fff",
borderRadiusInput: "15",
};