Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

[GH-12291] UI Automation: Write an automated test using Cypress for "Markdown quotation paragraphs" #4158

Merged
merged 11 commits into from
Nov 14, 2019

Conversation

larkox
Copy link
Contributor

@larkox larkox commented Nov 7, 2019

Summary

UI Automation: Write an automated test using Cypress for "Markdown quotation paragraphs"

Ticket Link

Fixes mattermost/mattermost#12291

Related Pull Requests

None

Screenshots

None

@hanzei hanzei added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Nov 8, 2019
Copy link
Contributor

@lindy65 lindy65 left a comment

Choose a reason for hiding this comment

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

Thanks @larkox 👍

@lindy65 lindy65 added QA Review Done Tests/Not Needed Does not require new release tests and removed 3: QA Review Requires review by a QA tester labels Nov 11, 2019
Copy link
Member

@saturninoabril saturninoabril left a comment

Choose a reason for hiding this comment

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

@larkox Looks good to me, just minor comments only.

Copy link
Member

@jespino jespino left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks @larkox! 🎉

Comment on lines 23 to 30
cy.get('#post_textbox').clear().type('>' + messageParts[0]);
cy.get('#post_textbox').type('{shift}{enter}{enter}');

cy.get('#post_textbox').type('>' + messageParts[1]);
cy.get('#post_textbox').type('{shift}{enter}{enter}');

cy.get('#post_textbox').type('>' + messageParts[2]);
cy.get('#post_textbox').type('{enter}');
Copy link
Member

Choose a reason for hiding this comment

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

Last request and I'm all good to merge. Please change to

cy.get('#post_textbox').clear().
    type('>' + messageParts[0]).type('{shift}{enter}{enter}').
    type('>' + messageParts[1]).type('{shift}{enter}{enter}').
    type('>' + messageParts[2]).type('{enter}');

@saturninoabril saturninoabril added this to the v5.18.0 milestone Nov 14, 2019
// # Post message to use
cy.get('#post_textbox').clear().type('>' + messageParts[0]).type('{shift}{enter}{enter}');
cy.get('#post_textbox').type('>' + messageParts[1]).type('{shift}{enter}{enter}');
cy.get('#post_textbox').type('>' + messageParts[2]).type('{enter}');
Copy link
Member

Choose a reason for hiding this comment

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

I'm good with this as is but would be nice to access cy.get('#post_textbox') once, and chain others as necessary.

Copy link
Member

@saturninoabril saturninoabril left a comment

Choose a reason for hiding this comment

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

@larkox LGTM, thanks!

@saturninoabril saturninoabril added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter labels Nov 14, 2019
@saturninoabril saturninoabril merged commit 3f91ef5 into mattermost:master Nov 14, 2019
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Nov 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation QA Review Done Tests/Not Needed Does not require new release tests
Projects
None yet
6 participants