? Language Change NPM Resource Changed PR-4.3-dev Pending

User tests: Successful: Unsuccessful:

avatar obuisard
obuisard
9 Mar 2023

When someone creating a tour enters a selector that is not valid, the tour does not start, produces an error in the browser console, nothing happens but the tour keeps trying to start until the user logs out. The user receives no feedback, unless he/her is aware of the browser console.

Summary of Changes

We already caught the error but the session storage was not cleared.
This PR clears the storage on error and produces an error message for the user.

Testing Instructions

Create a step or edit a step in a tour. Enter an invalid target, for instance #1_tada. This selector is invalid because it starts with a number.
Start the tour. you should see the error message:

image

Actual result BEFORE applying this Pull Request

The tour does not start, there is no user feedback and the user needs to logout to recover.

Expected result AFTER applying this Pull Request

The tour does not start, the administrator console is unaffected, a message pops up explaining that the tour cannot run and the user can resume activities.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomla-cms-bot joomla-cms-bot - change - 9 Mar 2023
Category Administration Language & Strings JavaScript Repository NPM Change Front End Plugins
avatar obuisard obuisard - open - 9 Mar 2023
avatar obuisard obuisard - change - 9 Mar 2023
Status New Pending
avatar obuisard obuisard - change - 9 Mar 2023
The description was changed
avatar obuisard obuisard - edited - 9 Mar 2023
avatar obuisard obuisard - change - 9 Mar 2023
Labels Added: Language Change NPM Resource Changed PR-4.3-dev
avatar brianteeman brianteeman - test_item - 9 Mar 2023 - Tested successfully
avatar brianteeman
brianteeman - comment - 9 Mar 2023

I have tested this item successfully on 99b66de

not a fan of the tone of the message but can confirm that it does what it says


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40054.

avatar khu5h1 khu5h1 - test_item - 10 Mar 2023 - Tested successfully
avatar khu5h1
khu5h1 - comment - 10 Mar 2023

I have tested this item successfully on c197ca8


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40054.

avatar Quy Quy - test_item - 10 Mar 2023 - Tested successfully
avatar Quy
Quy - comment - 10 Mar 2023

I have tested this item successfully on c197ca8


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40054.

avatar Quy Quy - change - 10 Mar 2023
Status Pending Ready to Commit
avatar Quy
Quy - comment - 10 Mar 2023

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40054.

avatar Quy Quy - change - 10 Mar 2023
Labels Added: ?
avatar obuisard obuisard - close - 12 Mar 2023
avatar obuisard obuisard - merge - 12 Mar 2023
avatar obuisard obuisard - change - 12 Mar 2023
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-03-12 04:26:34
Closed_By obuisard

Add a Comment

Login with GitHub to post a comment