Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4459

New demo mode for custom apps

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • DEV backlog
    • Others
    • Hide

      This issue should be tested once MOBILE-4460 has been integrated.

      This issue only needs to be tested in 1 device.

      This issue requires to generate builds with different configuration OR to override the configuration using app subscription.

      App with demo mode disabled

      When the demo mode is disabled, the app should behave as it used to: you can connect to any site OR to the list of sites specified in the config.

      App with demo mode enabled but no demo sites

      If demoMode is enabled in the app but there is no demo site in the list of sites, the app should behave as it used to: you can connect to any site OR to the list of sites specified in the config.

      App with demo mode enabled and it has a demo site

      1. Start the app with no sites added. Check that the app sends you to the credentials screen, you cannot enter the URL you want to connect to.
      2. In credentials screen, check that you don't see the URL, logo or name of the site you are connecting to. You should see the app name and the logo included in the app instead (assets/img/login_logo.png).
      3. Check that you can correctly login to the site using credentials for the demo site, and that the app works as usual when logged in.
      4. Open the user menu (avatar icon). Check that you don't see the URL, logo or name of the site you are connecting to. You should see the app name and the logo included in the app instead (assets/img/login_logo.png).
      5. Logout from the site. In the list of sites, check that you don't see the URL or name of the site (you see app name instead).
      6. Click to add a new site. Check that the app sends you to the credentials screen, you cannot enter the URL you want to connect to.
      7. Now change the app config to disable demo mode. This can be done with a new build OR overriding the configuration using app subscription.
      8. Start the app and go to add a new site. Check that you can now connect to any site (or to the list of sites specified in config.json), and the demo site doesn't appear in the list if you have specified a list of sites. 
      9. Connect to any site. In credentials screen, check that you can see the URL, name and the logo of the site you're connecting to. Also in user menu (avatar icon).
      10. Go to App Settings > Synchronization. In the list of sites, check that you can see the URL and name of the non-demo site, but you don't see the URL and name of the demo site.
      11. Go to change account and check that you can still connect and use the demo site you used before, even if demo mode has been disabled. Demo mode only affects when adding a new site, sites already added will still work as usual.
      12. Go to change account and enter the "normal" (non-demo) site again.
      13. Now change the app config to enable demo mode again. This can be done with a new build OR overriding the configuration using app subscription.
      14. Start the app. Check that you can still use the "normal" (non-demo) site, even if demo mode is enabled. Demo mode only affects when adding a new site, sites already added will still work as usual.
      Show
      This issue should be tested once MOBILE-4460 has been integrated. This issue only needs to be tested in 1 device. This issue requires to generate builds with different configuration OR to override the configuration using app subscription. App with demo mode disabled When the demo mode is disabled, the app should behave as it used to: you can connect to any site OR to the list of sites specified in the config. App with demo mode enabled but no demo sites If demoMode is enabled in the app but there is no demo site in the list of sites, the app should behave as it used to: you can connect to any site OR to the list of sites specified in the config. App with demo mode enabled and it has a demo site Start the app with no sites added. Check that the app sends you to the credentials screen, you cannot enter the URL you want to connect to. In credentials screen, check that you don't see the URL, logo or name of the site you are connecting to. You should see the app name and the logo included in the app instead (assets/img/login_logo.png). Check that you can correctly login to the site using credentials for the demo site, and that the app works as usual when logged in. Open the user menu (avatar icon). Check that you don't see the URL, logo or name of the site you are connecting to. You should see the app name and the logo included in the app instead (assets/img/login_logo.png). Logout from the site. In the list of sites, check that you don't see the URL or name of the site (you see app name instead). Click to add a new site. Check that the app sends you to the credentials screen, you cannot enter the URL you want to connect to. Now change the app config to disable demo mode. This can be done with a new build OR overriding the configuration using app subscription. Start the app and go to add a new site. Check that you can now connect to any site (or to the list of sites specified in config.json), and the demo site doesn't appear in the list if you have specified a list of sites.  Connect to any site. In credentials screen, check that you can see the URL, name and the logo of the site you're connecting to. Also in user menu (avatar icon). Go to App Settings > Synchronization. In the list of sites, check that you can see the URL and name of the non-demo site, but you don't see the URL and name of the demo site. Go to change account and check that you can still connect and use the demo site you used before, even if demo mode has been disabled. Demo mode only affects when adding a new site, sites already added will still work as usual. Go to change account and enter the "normal" (non-demo) site again. Now change the app config to enable demo mode again. This can be done with a new build OR overriding the configuration using app subscription. Start the app. Check that you can still use the "normal" (non-demo) site, even if demo mode is enabled. Demo mode only affects when adding a new site, sites already added will still work as usual.
    • Moodle Apps - 2023 Sprint i4.1

      It would be a nice feature to have a new "Developer" option available in order to make any custom app connect to a "demo" site to test certain features only available in that site.

      This should behave similar to any demo mode available in other system such as kiosk apps. The user should be able to connect only to the demo site when this mode is enabled.

      Shaping document: https://docs.google.com/document/d/14v3-2UgThpKpMmjm0FxkSj26jkVokfk7iX4-XrVuRck/edit

            dpalou Dani Palou
            jleyva Juan Leyva
            Noel De Martin Noel De Martin
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 1 week
                1w
                Remaining:
                Remaining Estimate - 1 week
                1w
                Logged:
                Time Spent - Not Specified
                Not Specified

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