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

MM-T346 Public link related to a deleted post should no longer open the file #6331

Merged
merged 11 commits into from
Sep 4, 2020
Merged

Conversation

M-ZubairAhmed
Copy link
Member

@M-ZubairAhmed M-ZubairAhmed commented Aug 30, 2020

Summary

This PR includes an end to end test for verifying the deleted post attachment are indeed deleted when we try to visit their public links

Ticket Link

MM-T346

Related Pull Requests

none

Screenshots

none

@M-ZubairAhmed M-ZubairAhmed changed the title MM-T346 Public link related to a deleted post should no longer open t… MM-T346 Public link related to a deleted post should no longer open the file Aug 30, 2020
@saturninoabril saturninoabril added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester Hackfest labels Aug 31, 2020
Copy link
Contributor

@josephbaylon josephbaylon left a comment

Choose a reason for hiding this comment

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

Hi @M-ZubairAhmed , I'm getting a failure when the case is run with other cases in the test file. It runs successfully by itself though. Please check.

Screen Shot 2020-08-31 at 10 48 18 AM
Screen Shot 2020-08-31 at 10 47 54 AM

@M-ZubairAhmed
Copy link
Member Author

@josephbaylon Hi, thanks for bringing this up, unfortunately my computer doesnt handle running more than one test simulataneously. Also i see that the problem seems to be in beforeEach. If you can let me know i will gladly be able to fix

@josephbaylon
Copy link
Contributor

@M-ZubairAhmed I tried locally and just needs cy.apiAdminLogin(); before cy.apiInitSetup().. to reset to admin

@M-ZubairAhmed
Copy link
Member Author

@josephbaylon build is failing due to some node error. Can you please check, all other are working fine, is there something i should do from here?

Copy link
Contributor

@josephbaylon josephbaylon left a comment

Choose a reason for hiding this comment

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

LGTM. All tests passed. Thanks @M-ZubairAhmed !!

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.

Thanks @M-ZubairAhmed. LGTM, except for one request.

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.

Thanks @M-ZubairAhmed, LGTM!

@saturninoabril saturninoabril added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Sep 4, 2020
@saturninoabril saturninoabril merged commit d1a359b into mattermost:master Sep 4, 2020
@M-ZubairAhmed M-ZubairAhmed deleted the MM-T346 branch September 5, 2020 03:08
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Sep 6, 2020
jfrerich pushed a commit that referenced this pull request Oct 23, 2020
…he file (#6331)

* MM-T346 Public link related to a deleted post should no longer open the file

* login as admin

* typo

* changes

* changes

* Update e2e/cypress/integration/files_and_attachments/upload_files_spec.js

Co-authored-by: Saturnino Abril <[email protected]>

* changes 1

Co-authored-by: Saturnino Abril <[email protected]>
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 Hackfest
Projects
None yet
4 participants