Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
rmanaem committed Feb 19, 2024
1 parent 01a1a34 commit 1ea24b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cypress/component/ContinuousField.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ describe("ContinuousField", () => {
cy.mount(<ContinuousField label={props.label} onFieldChange={props.onFieldChange} />);
cy.get('[data-cy="Continuous Field-continuous-field"]').should("be.visible");
cy.get('[data-cy="Continuous Field-continuous-field"] label').should("contain", "Continuous Field");
cy.get('[data-cy="Continuous Field-continuous-field"] label').should("not.have.class", "MUI-error");
cy.get('[data-cy="Continuous Field-continuous-field"] label').should("not.have.class", "Mui-error");
})
it("Displays a MUI Textfield in error state with the helper text passed as a prop", () => {
cy.mount(<ContinuousField label={props.label} onFieldChange={props.onFieldChange} helperText={props.helperText}/>);
cy.get('[data-cy="Continuous Field-continuous-field"] p').should("contain", "This is a helper text");
cy.get('[data-cy="Continuous Field-continuous-field"] label').should("have.class", "MUI-error");
cy.get('[data-cy="Continuous Field-continuous-field"] label').should("have.class", "Mui-error");
})
it("Fires onFieldChange event handler with the appropriate payload when a value is entered", () => {
const onFieldChange = cy.spy().as("onFieldChange");
Expand Down
2 changes: 1 addition & 1 deletion cypress/component/DownloadResultButton.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe("DownloadResultButton", () => {
it("Displays a disabled MUI Button and a tooltip when the button is hovered over", () => {
cy.mount(<DownloadResultButton identifier={props.identifier} disabled handleClick={props.handleClick} />);
cy.get('[data-cy="test-download-results-button"]').trigger('mouseover', {force: true});
cy.get('.MUITooltip-tooltip').should("contain", "Please select at least one dataset");
cy.get('.MuiTooltip-tooltip').should("contain", "Please select at least one dataset");
})
it("Fires the handleClick event handler with the appropriate payload when the button is clicked", () => {
const handleClick = cy.spy().as("handleClick");
Expand Down

0 comments on commit 1ea24b5

Please sign in to comment.