Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-79107

TinyMCE - Behat test when writing to TinyMCE editor with hidden label fails as element not interactable

XMLWordPrintable

      Some of our Behat tests fail when writing into the TinyMCE editor on the Preview page where the associated editor labels are hidden.

      And this works fine with Atto editor.

      Please find below the Behat steps I followed to reproduce this error for the Essay question type:

      I have edited the existing scenario 'Preview an Essay question that uses the HTML editor with embedded files.' from 'Feature: Preview Essay questions' and have added the highlighted steps.

       

      Scenario: Preview an Essay question that uses the HTML editor with embedded files.
      When I am on the "essay-002" "core_question > preview" page logged in as teacher
      And I expand all fieldsets

      And I set the following fields to these values:
      | Answer text Question 1 | <p>The <b>cat</b> sat on the mat. Then it ate a <b>frog</b>.</p> |

      And I press "Submit and finish"

      --------------

      When this Behat test is run, it fails with the following error when we try to add value to 'Answer text Question 1' field.

      element not interactable
        (Session info: chrome=116.0.5845.97)

            dobedobedoh Andrew Lyons
            Anupama Sarjoshi Anupama Sarjoshi
            Anupama Sarjoshi Anupama Sarjoshi
            Jun Pataleta Jun Pataleta
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 56 minutes
                2h 56m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.