Mattermost-server: Many UI automation tests are failing in interactive_menu/basic_options_spec.js

Created on 24 Dec 2019  路  4Comments  路  Source: mattermost/mattermost-server

Summary

In UI automation test suite integration/interactive_menu/basic_options_spec.js, following tests are failing due to same element not found error.

Steps to reproduce

  • Start the webhook
  • Start cypress test
  • Open integration/interactive_menu/basic_options_spec.js test

Expected behavior

Tests should not fail

Observed behavior (that appears unintentional)

Screenshot from 2019-12-24 14-22-01

All errors are same where they fail to find the message input field

Possible fixes

It should find the element by placeholder instead
cy.findByPlaceholderText('Select an option...')

If you can, link to the line of code that might be responsible for the problem
https://github.com/mattermost/mattermost-webapp/blob/master/e2e/cypress/integration/interactive_menu/basic_options_spec.js#L107

Help Wanted PR Exists

All 4 comments

This is a legit issue as confirmed by @saturninoabril,
Just saying because this was not tagged :smile:

Thanks @M-ZubairAhmed for fixing those!

Thanks @M-ZubairAhmed for filing and fixing the tests!

Always happy to help Saturnino

Was this page helpful?
0 / 5 - 0 ratings