Merge branch 'fix/control-classnames' into 'release'

Classname update for tests

See merge request theappsmith/internal-tools-client!464
This commit is contained in:
Satbir Singh 2020-04-08 11:13:27 +00:00
commit c57e228fec
5 changed files with 8 additions and 3 deletions

View File

@ -49,6 +49,7 @@ class ImageComponent extends React.Component<
style={{
display: "none",
}}
alt={this.props.widgetName}
src={this.props.imageUrl}
onError={this.onImageError}
onLoad={this.onImageLoad}

View File

@ -94,7 +94,7 @@ const handlePageNameArgSelect = (
`{{$1(${args.join(",")})}}`,
);
};
/* eslint-disable @typescript-eslint/no-unused-vars */
const handlePageParamsArgSelect = (
changeValue: ValueType,
currentValue: string,
@ -111,6 +111,7 @@ const handlePageParamsArgSelect = (
`{{$1(${args.join(",")})}}`,
);
};
/* eslint-enable @typescript-eslint/no-unused-vars */
const handleTextArgChange = (
changeValue: ValueType,
@ -172,6 +173,7 @@ const getPageNameSelectedValue = (value: string) => {
const matches = [...value.matchAll(ACTION_TRIGGER_REGEX)];
return matches.length ? matches[0][2].split(",")[0] : "none";
};
/* eslint-disable @typescript-eslint/no-unused-vars */
const getPageParamsSelectedValue = (value: ValueType) => {
const match = getPageSelectedParamsObject(value as string);
@ -184,6 +186,7 @@ const getPageParamsSelectedValue = (value: ValueType) => {
});
return keyPairs;
};
/* eslint-enable @typescript-eslint/no-unused-vars */
const getPageSelectedParamsObject = (value: string) => {
const matches = [...value.matchAll(ACTION_TRIGGER_REGEX)];

View File

@ -46,6 +46,7 @@ function UnderlinedLabel({
}
: {}
}
className={`t--property-control-label`}
>
{label}
</label>

View File

@ -1,4 +1,4 @@
import { call, takeLatest, put, all, delay } from "redux-saga/effects";
import { call, takeLatest, put, all } from "redux-saga/effects";
import {
ReduxAction,
ReduxActionWithPromise,

View File

@ -11,7 +11,7 @@ import {
URL_HTTP_VALIDATION_ERROR,
} from "constants/messages";
import { getTextArgValue } from "components/editorComponents/DynamicActionCreator";
const URL_REGEX = /^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/;
const URL_REGEX = /^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([-.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/;
export const VALIDATORS: Record<ValidationType, Validator> = {
[VALIDATION_TYPES.TEXT]: (value: any): ValidationResponse => {