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

Write Web App E2E with Cypress: "MM-T642 Attachment does not collapse" #18184

Closed
saturninoabril opened this issue Aug 17, 2021 · 1 comment
Closed
Assignees

Comments

@saturninoabril
Copy link
Member

saturninoabril commented Aug 17, 2021

See our documentation for Webapp end-to-end testing with Cypress for reference.

MM-T642 Attachment does not collapse

Steps

Attachment does not collapse
–––––––––––––––––––––––––
  1. Create an incoming webhook ad send POST with attachment
  2. View the webhook post that has the attachment
  3. Type /collapse and press Enter
  4. Observe the integration post with the Message Attachment

Expected

  • Does not collapse

Test Folder: /cypress/integration/integrations/incoming_webhook
Test code arrangement:

describe('Integrations/Incoming Webhook', () => {
    it('MM-T642 Attachment does not collapse', () => {
        // code
    });
});

Notes:

  1. Do not add @prod label in a spec file
  • If you're writing script into a newly created test file, @prod label should not be included.
  • If you're adding script into an existing test file, @prod label should removed.
  1. Use queries from testing-library whenever possible. We share the same philosophy as the testing-library when doing UI automation like "Interact with your app the same way as your users" and so, please follow their guidelines especially when querying an element.

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.

@simcard0000
Copy link

Hello! Just jumping on this ticket so that I can produce a video about E2E testing for Hacktoberfest 2022.

@hmhealey hmhealey changed the title Write Webapp E2E with Cypress: "MM-T642 Attachment does not collapse" Write Web App E2E with Cypress: "MM-T642 Attachment does not collapse" Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants