Skip to content

[RichTextInput] add tests and fix bugs - #3223

Merged
fzaninotto merged 26 commits into
marmelab:masterfrom
cherniavskii:rich-text-input
Jun 13, 2019
Merged

fzaninotto merged 26 commits into
marmelab:masterfrom
cherniavskii:rich-text-input

Conversation

@cherniavskii

Copy link
Copy Markdown
Contributor

As suggested in #3209 (comment), I've added tests.

Fixes #3206, #3207 and #3209 (comment)

Closes #3209, #3221 and #3208 patches, since it contains them all.

@djhi djhi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

Comment thread cypress/integration/create.js Outdated
@cherniavskii

Copy link
Copy Markdown
Contributor Author

Let me know If there's anything blocking this PR from merging

@djhi djhi added this to the 2.9.2 milestone May 22, 2019
@fzaninotto fzaninotto modified the milestones: 2.9.2, v2.9.3 May 28, 2019

@djhi djhi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍 Thanks!

Comment thread cypress/integration/create.js Outdated
});

it('should not show rich text input error message when field is untouched', () => {
cy.get('.ra-input-body .ra-rich-text-input > p').should('not.exist');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking for a p seems fragile. Would you mind adding a className (error ?) on the FormHelperText used to display validation errors?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. done!

@djhi
djhi requested a review from fzaninotto June 5, 2019 15:01
@cherniavskii

Copy link
Copy Markdown
Contributor Author

@djhi can you rerun travis ci build? It's failed because of timeout error:

CypressError: Timed out after waiting '60000ms' for your remote page to load.

which seems to be caused by network issues. e2e tests are passing locally.

@fzaninotto
fzaninotto merged commit 2e72f1a into marmelab:master Jun 13, 2019
@fzaninotto

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ra-input-rich-text] validation doesn't rerun on input change

3 participants