MM-T1615 Pasting code block text into external apps does not include line numbers
Steps
Copy the text in the test data field to the right (and shown posted below)
Post it in a channel
Copy the text from the channel
Paste into a program that supports rich text such as Textedit on Mac or an empty Google document
Test Data
```javascript var foo = 'bar'; function doSomething() { return 7; } ```
Expected
Only the code is pasted
Test Folder:/cypress/integration/messagingTest code arrangement:
describe('Messaging', () => {
it('MM-T1615 Pasting code block text into external apps does not include line numbers', () => {
// code
});
});
Notes:
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.
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.
See our documentation for Webapp end-to-end testing with Cypress for reference.
MM-T1615 Pasting code block text into external apps does not include line numbers
Steps
Test Data
```javascriptvar foo = 'bar';
function doSomething() {
return 7;
}
```
Expected
Test Folder:
/cypress/integration/messaging
Test code arrangement:Notes:
@prod
label in a spec file@prod
label should not be included.@prod
label should removed.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.