Skip to content

Commit

Permalink
fix input specs
Browse files Browse the repository at this point in the history
  • Loading branch information
jsartisan committed Jan 7, 2025
1 parent 79f2351 commit 0bb967c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
} from "../../../../../support/Objects/ObjectsCore";

// TODO: Enable when issue(github.com/appsmithorg/appsmith/issues/36419) is solved.
describe.skip(
describe(
`${ANVIL_EDITOR_TEST}: Anvil tests for Currency Input Widget`,
{ tags: ["@tag.Anvil", "@tag.Visual"] },
() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
} from "../../../../../support/Objects/ObjectsCore";

// TODO: Enable when issue(github.com/appsmithorg/appsmith/issues/36419) is solved.
describe.skip(
describe(
`${ANVIL_EDITOR_TEST}: Anvil tests for Input Widget`,
{ tags: ["@tag.Anvil", "@tag.Visual"] },
() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
} from "../../../../../support/Objects/ObjectsCore";

// TODO: Enable when issue(github.com/appsmithorg/appsmith/issues/36419) is solved.
describe.skip(
describe(
`${ANVIL_EDITOR_TEST}: Anvil tests for Phone Input Widget`,
{ tags: ["@tag.Anvil", "@tag.Visual"] },
() => {
Expand Down
4 changes: 2 additions & 2 deletions app/client/cypress/support/Pages/Anvil/AnvilSnapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ export class AnvilSnapshot {

public triggerInputInvalidState = () => {
this.enterPreviewMode();
cy.get("input[aria-required=true]").first().type("123");
cy.get("input[aria-required=true]").first().clear();
cy.get("input[required]").first().type("123");
cy.get("input[required]").first().clear();
this.exitPreviewMode();
this.agHelper.GetNClick(this.locators.propertyPaneSidebar);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ export function FieldLabel(props: LabelProps) {
className={clsx(styles.label)}
elementType="label"
>
<Text fontWeight={600} size="caption">
<Text
fontWeight={600}
lineClamp={1}
size="caption"
title={children?.toString()}
>
{children}
</Text>
{Boolean(isRequired) && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
display: flex;
align-items: center;
gap: var(--inner-spacing-1);
min-height: var(--sizing-3);
height: var(--sizing-3);
margin-block-end: var(--inner-spacing-3);
}

Expand Down

0 comments on commit 0bb967c

Please sign in to comment.