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

AI subsystem MVP

XMLWordPrintable

    • MOODLE_405_STABLE
    • MOODLE_405_STABLE
    • MDL-82627-main-4
    • Hide

      Testing 1 - Administration setting

      1. Login as admin.
      2. Navigate to Site admin >> General >> AI >> Manage settings for AI providers
      3. Verify there is an OpenAI API Provider plugin, and it's disabled.
      4. Enable the OpenAI provider plugin.
      5. Verify the toggle button is changed to ON.
      6. Disable the OpenAI provider plugin.
      7. Click the settings link of the OpenAI provider.
      8. Verify there is a Provider specific settings form.
      9. Verify there is a Provider actions table under the save changes button.
      10. Verify all actions in the provider actions table are enabled.
      11. Disable the Generate text action.
      12. Reload the page
      13. Verify that the Generate text action is disabled.
      14. Navigate to Site admin >> General >> AI >> Manage settings for AI placements
      15. Verify there is a HTML Text Editor Placement plugin, and it's disabled.
      16. Click the settings link of the HTML Text Editor Placement plugin.
      17. Verify there is a Placement actions table.
      18. Verify all actions in the provider actions table are enabled.
      19. Disabled the Generate text action.
      20. Reload the page
      21. Verify that the Generate text action is disabled.

      Testing 2 - Provider

      1. Login as admin.
      2. Disable the OpenAI API Provider.
      3. Enabled the HTML Text Editor placement.
      4. Click Settings for HTML Text Editor placement.
      5. Verify that you will see: "This action is unavailable. No providers are configured for this action"

      Testing 3 - Placement

      1. Login as admin.
      2. Enable the OpenAI Provider (and all actions inside the Settings).
      3. Disable the HTML Text Editor Placement.
      4. Edit your profile.
      5. Verify that you will not see any AI buttons in the Tiny editor.
      6. Enable the HTML Text Editor Placement.
      7. Click on the Setting link.
      8. Disable the Generate text and Generate image actions.
      9. Edit your profile.
      10. Verify that you will not see any AI buttons in the Tiny editor.
      11. Enable the Generate text action.
      12. Edit your profile.
      13. Verify that you will see a single AI button called AI generate text in the Tiny editor.
      14. Enable the Generate image action and disable the Generate text action.
      15. Edit your profile.
      16. Verify that you will see a single AI button called AI generate image in the Tiny editor.
      17. Enable both Generate image action and the Generate text action.
      18. Edit your profile.
      19. Verify that you will see a Generate AI content dropdown button.
      20. Click on that button
      21. Verify that you will see 2 items called AI generate text and AI generate image.

      Testing 4 - Error

      1. Login as admin.
      2. Provide wrong information for API key of OpenAI provider.
      3. Edit your profile.
      4. Try to Generate text or image by AI generate text or AI generate image button.
      5. Verify that you will see the error:
        • Title: Something went wrong
        • Content: Try again later

      Testing 5 - Generate text

      1. Login as admin.
      2. Provide the correct information for API key of the OpenAI provider.
      3. Edit your profile.
      4. Click on the AI button.
      5. Select AI generate text.
      6. Agree with the Policy (If any).
      7. Input some text in the Describe the text you want AI to create. Example: Write a short introduction for Moodle LMS.
      8. Press Generate Text.
      9. Verify you will see the Generated text on the right.
      10. Press Regenerate.
      11. Verify you will see another generated text on the right.
      12. Press Insert.
      13. Verify that the text is inserted into the text editor.

      Testing 6 - Generate image

      1. Login as admin.
      2. Provide the correct information for API key of the OpenAI provider.
      3. Edit your profile.
      4. Click on the AI button.
      5. Select AI generate image.
      6. Agree with the Policy (If any).
      7. Input some text in the Describe the image you want AI to create. Example: Cat.
      8. Select High for Image quality.
      9. Select Landscape for Image shape.
      10. Press Generate Image.
      11. Verify you will see the Generated image on the right.
      12. Press Regenerate.
      13. Verify you will see another generated image on the right.
      14. Press Next.
      15. Verify that you will see another screen for image insert.
      16. Verify that your previous prompt is added to the image description (Below the image)
      17. Press Save
      18. Verify that the image is inserted into the text editor.
      19. Feel free to re-test with other image quality and image shape.
      Show
      Testing 1 - Administration setting Login as admin. Navigate to Site admin >> General >> AI >> Manage settings for AI providers Verify  there is an OpenAI API Provider plugin, and it's disabled. Enable the OpenAI provider plugin. Verify the toggle button is changed to ON. Disable the OpenAI provider plugin. Click the settings link of the OpenAI provider. Verify there is a Provider specific settings form. Verify there is a Provider actions table under the save changes button. Verify all actions in the provider actions table are enabled. Disable the Generate text action. Reload the page Verify that the Generate text action is disabled. Navigate to Site admin >> General >> AI >> Manage settings for AI placements Verify there is a HTML Text Editor Placement plugin, and it's disabled. Click the settings link of the HTML Text Editor Placement plugin. Verify there is a Placement actions table. Verify all actions in the provider actions table are enabled. Disabled the Generate text action. Reload the page Verify that the Generate text action is disabled. Testing 2 - Provider Login as admin. Disable the OpenAI API Provider. Enabled the HTML Text Editor placement. Click Settings for HTML Text Editor placement. Verify that you will see: "This action is unavailable. No providers are configured for this action" Testing 3 - Placement Login as admin. Enable the OpenAI Provider (and all actions inside the Settings). Disable the HTML Text Editor Placement. Edit your profile. Verify that you will not see any AI buttons in the Tiny editor. Enable the HTML Text Editor Placement. Click on the Setting link. Disable the Generate text and Generate image actions. Edit your profile. Verify that you will not see any AI buttons in the Tiny editor. Enable the Generate text action. Edit your profile. Verify that you will see a single AI button called AI generate text in the Tiny editor. Enable the Generate image action and disable the Generate text action. Edit your profile. Verify that you will see a single AI button called AI generate image in the Tiny editor. Enable both Generate image action and the Generate text action. Edit your profile. Verify that you will see a Generate AI content dropdown button. Click on that button Verify that you will see 2 items called AI generate text and AI generate image. Testing 4 - Error Login as admin. Provide wrong information for API key of OpenAI provider. Edit your profile. Try to Generate text or image by AI generate text or AI generate image button. Verify that you will see the error: Title: Something went wrong Content: Try again later Testing 5 - Generate text Login as admin. Provide the correct information for API key of the OpenAI provider. Edit your profile. Click on the AI button. Select AI generate text. Agree with the Policy (If any). Input some text in the Describe the text you want AI to create. Example: Write a short introduction for Moodle LMS. Press Generate Text. Verify you will see the Generated text on the right. Press Regenerate. Verify you will see another generated text on the right. Press Insert. Verify that the text is inserted into the text editor. Testing 6 - Generate image Login as admin. Provide the correct information for API key of the OpenAI provider. Edit your profile. Click on the AI button. Select AI generate image. Agree with the Policy (If any). Input some text in the Describe the image you want AI to create. Example: Cat. Select High for Image quality. Select Landscape for Image shape. Press Generate Image. Verify you will see the Generated image on the right. Press Regenerate. Verify you will see another generated image on the right. Press Next. Verify that you will see another screen for image insert. Verify that your previous prompt is added to the image description (Below the image) Press Save Verify that the image is inserted into the text editor. Feel free to re-test with other image quality and image shape.
    • 10
    • Team Hedgehog 2024 Sprint 3.1, Team Hedgehog 2024 Sprint 3.2

      This issue will collect the commits to push to integration for the MVP of the AI subsystem. The functionality required/included is:

      1. The base subsystem.
      2. Required admin settings.
      3. An AI provider (Open AI).
      4. An AI placement.
      5. Privacy provider

        1. MDL-82627 - 1.png
          MDL-82627 - 1.png
          933 kB
        2. MDL-82627 - 2.png
          MDL-82627 - 2.png
          125 kB
        3. MDL-82627 - 3.png
          MDL-82627 - 3.png
          375 kB
        4. MDL-82627 - 4.png
          MDL-82627 - 4.png
          76 kB
        5. MDL-82627 - 5.png
          MDL-82627 - 5.png
          374 kB
        6. MDL-82627 - 6.png
          MDL-82627 - 6.png
          1.69 MB
        7. MDL-82627 JS error.png
          MDL-82627 JS error.png
          275 kB
        8. MDL-82627 overlapping elements.png
          MDL-82627 overlapping elements.png
          63 kB

            huongn@moodle.com Huong Nguyen
            michaelh Michael Hawkins
            Meirza Meirza
            Jun Pataleta Jun Pataleta
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 week, 3 hours, 31 minutes
                1w 3h 31m

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