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

"Generate image using AI" test uses unknown generators entity types (ai providers)

XMLWordPrintable

      While inspecting this failed build I noticed some Pending steps:

      --- Pending steps:
       
      001 Scenario: Image generation using AI is not available if placement is not enabled # /var/www/html/lib/editor/tiny/plugins/aiplacement/tests/behat/image.feature:37
            And the following "ai providers" exist:                                        # behat_data_generators::the_following_entities_exist()
              "ai providers" is not a known type of entity that can be generated.
       
      002 Scenario: Image generation using AI is not available if provider is not enabled # /var/www/html/lib/editor/tiny/plugins/aiplacement/tests/behat/image.feature:48
            And the following "ai providers" exist:                                       # behat_data_generators::the_following_entities_exist()
              "ai providers" is not a known type of entity that can be generated.
       
      003 Scenario: Image generation using AI is not available if provider action is not enabled # /var/www/html/lib/editor/tiny/plugins/aiplacement/tests/behat/image.feature:59
            And the following "ai providers" exist:                                              # behat_data_generators::the_following_entities_exist()
              "ai providers" is not a known type of entity that can be generated.
       
      004 Scenario: Image generation using AI is not available if placement action is not enabled # /var/www/html/lib/editor/tiny/plugins/aiplacement/tests/behat/image.feature:74
            And the following "ai providers" exist:                                               # behat_data_generators::the_following_entities_exist()
              "ai providers" is not a known type of entity that can be generated.
       
      005 Scenario: Image generation using AI is not available if provider action is not enabled and placement action is enabled # /var/www/html/lib/editor/tiny/plugins/aiplacement/tests/behat/image.feature:87
            And the following "ai providers" exist:                                                                              # behat_data_generators::the_following_entities_exist()
              "ai providers" is not a known type of entity that can be generated.
       
      006 Scenario: Image generation using AI is not available if the user does not have permission # /var/www/html/lib/editor/tiny/plugins/aiplacement/tests/behat/image.feature:109
            And the following "ai providers" exist:                                                 # behat_data_generators::the_following_entities_exist()
              "ai providers" is not a known type of entity that can be generated.
      

      That's because some tests are using the wrong generator 'the following "ai providers" exist' and the correct is 'the following "core_ai > ai providers" exist'.

        1. MDL-84607_test.png
          59 kB
          Sara Arjona (@sarjona)

            lameze Simey Lameze
            lameze Simey Lameze
            Angelia Dela Cruz Angelia Dela Cruz
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 41 minutes
                1h 41m

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