Remove the paramLabel and fix cypress (#3764)

This commit is contained in:
Midhun Kumar E 2022-08-09 21:14:51 +05:30 committed by GitHub
parent 9ea2d4c522
commit 381ae9df5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View file

@ -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) => {

View file

@ -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>