mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
Remove the paramLabel and fix cypress (#3764)
This commit is contained in:
parent
9ea2d4c522
commit
381ae9df5d
2 changed files with 4 additions and 5 deletions
|
|
@ -58,9 +58,9 @@ export const addDefaultEventHandler = (message) => {
|
|||
.should("have.text", commonWidgetText.addEventHandlerLink)
|
||||
.click();
|
||||
cy.get(commonWidgetSelector.eventHandlerCard).click();
|
||||
cy.get(commonWidgetSelector.alertMessageInputField).clearAndTypeOnCodeMirror(
|
||||
message
|
||||
);
|
||||
cy.get(commonWidgetSelector.alertMessageInputField)
|
||||
.find('[data-cy*="-input-field"]')
|
||||
.clearAndTypeOnCodeMirror(message);
|
||||
};
|
||||
|
||||
export const addAndVerifyTooltip = (widgetSelector, message) => {
|
||||
|
|
|
|||
|
|
@ -237,14 +237,13 @@ export const EventManager = ({
|
|||
<div className="col-3 p-2" data-cy="message-label">
|
||||
Message
|
||||
</div>
|
||||
<div className="col-9" data-cy="message-text">
|
||||
<div className="col-9" data-cy="alert-message-input-field">
|
||||
<CodeHinter
|
||||
theme={darkMode ? 'monokai' : 'default'}
|
||||
currentState={currentState}
|
||||
initialValue={event.message}
|
||||
onChange={(value) => handlerChanged(index, 'message', value)}
|
||||
usePortalEditor={false}
|
||||
paramLabel="alert-message"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue