Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RichTextInput] add tests and fix bugs #3223

Merged
merged 26 commits into from
Jun 13, 2019

Conversation

cherniavskii
Copy link
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.

Copy link
Collaborator

@djhi djhi left a comment

Choose a reason for hiding this comment

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

Thanks 👍

cypress/integration/create.js Outdated Show resolved Hide resolved
@cherniavskii
Copy link
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
Copy link
Collaborator

@djhi djhi left a comment

Choose a reason for hiding this comment

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

Nice 👍 Thanks!

@@ -212,4 +232,45 @@ describe('Create Page', () => {
expect(el).to.have.value('The real Slim Shady!')
);
});

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
Collaborator

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