Mattermost-server: UI Automation: Write an automated test using Cypress for "Edit a message in permalink view"

Created on 19 Sep 2019  路  3Comments  路  Source: mattermost/mattermost-server

Test Key: M18717
Test folder: /cypress/integration/messaging
Title: Edit a message in permalink view

Steps:

  1. Post a message containing a usefully searchable string such as "searchtest"
  2. Type that string into the search box and press Enter
  3. Click Jump in search results to jump to the permalink view of the message you had posted
  4. Observe permalink view in center, click the three-dot menu and select Edit
  5. Add some new text, ensuring that your search term remains intact (such as "searchtest") and Save
  6. As another user in another browser / device, do the same search, find the same message, and click Jump to view in permalink view

Expected:
Message is edited successfully, and "(edited)" should display at the end of the message for both users.

See our end-to-end testing documentation for reference.

Jira ticket: MM-18717


If you're interested, please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.

New contributors please see our Developer's Guide.

AreE2E Tests Easy Hacktoberfest Help Wanted

All 3 comments

I'd like to try this one please @saturninoabril

@Mycobee Sure and thanks for your interest!

@saturninoabril, I submitted a PR. This is my first time ever working with Mattermost repos or using the tool Cypress.

I had one small area of difficulty documented in my pull request. I would love constructive feedback on how to implement separate browser testing.

Hopefully other than that my work looks okay, please let me know where I can improve :)

Thank you for your time!

Was this page helpful?
0 / 5 - 0 ratings