-
Notifications
You must be signed in to change notification settings - Fork 2.7k
MM-15560 - E2E Fix: update markdown html fixtures #2792
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please check again? I feel like it's some kind of a valid bug.
@saturninoabril Should be good now, image proxy for sure impacts this test, so making sure we have it enabled for this test. |
@saturninoabril @migbot Latest changes pushed up. Using This should fix an issue @migbot was having. Right now there are several tests that do the |
@thekiiingbob I've got test failures on "Markdown - in-line images 3 and 4" due to the pending post ID returned from
![]() ![]() |
@saturninoabril I tested this latest code with caching disabled and under the Fast 3G network conditions, and the markdown tests pass for me. Give it a whirl under your environment and let me know if you are having issues. This should handle all the waiting we need for posts. Note that the actual implementation really didn't change, but things are passing for me. Image 3 & 4 are definitely the big offenders though. They take the longest to wait for. |
Sure, will give it a test. One thing though, the very long timeout, especially 150s seems a flaw to me. Do we have other choice? |
@saturninoabril Added timeouts constants file and started using it. Lemme know if the names of the consants is sufficient and clear enough, or if you had something else in mind. Image related markdown tests are now run after, with more intense timeout requirements added. |
Also, I had to update the expected HTML for the image tests. It seems that the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me; all tests passed 💯
All tests passed as well. |
* update image proxy setting in test to make sure URLs match * start cy server and wait for posts request to complete * improve performance of waiting for new posts under bad network conditions * integrate timeout constants, updated expected HTML
Summary
Ticket Link
JIRA
To run just these tests run
npm run cypress:run -- --spec "cypress/integration/markdown/**/*.js" --reporter "spec" --browser "chrome"