jac-uk / qt

Online testing tools
MIT License
0 stars 0 forks source link

#22 Exit out QTs #28

Closed drieJAC closed 1 year ago

drieJAC commented 1 year ago

Closes #22

Show default browser message if candidate tries to close the tab/browser whilst still in a test unless they have confirmed they wish to exit the test prematurely.

Also fixed a small lint error.

How to test

Visit the following URL: https://jac-qualifying-tests-develop--22-exit-out-qts-0ijgmlld.web.app/fhr2RUAfBXHullz4fcYq

Log in with one of the following demo users for the 'QT 22 Exit out QTs' test: test1@sharklasers.com test2@sharklasers.com test3@sharklasers.com test4@sharklasers.com test5@sharklasers.com test6@sharklasers.com test7@sharklasers.com test8@sharklasers.com test9@sharklasers.com test10@sharklasers.com test11@sharklasers.com test12@sharklasers.com

Start the test and then try each of the following actions:

In both cases you should see a message checking that you mean to close the page. Previously in both cases the page would have closed without warning.

Example message displayed in Google Chrome:

image

Example message displayed in Firefox:

image

Example message displayed in Safari:

image

Example message displayed in Edge:

image
drieJAC commented 1 year ago

Preview URL: https://jac-qualifying-tests-develop--22-exit-out-qts-0ijgmlld.web.app/oA2aQv1UKoram9aaxGDE

Expires: 2023-08-25 14:01:14

drieJAC commented 1 year ago

Nic said the versions of Chrome and Edge are:

Chrome: 115 Edge: 115

I did a call with Nick and we were able to successfully test this feature so it's ready for UT.

drieJAC commented 1 year ago

I updated the test so the email adrdesses should work now

nickaddy commented 1 year ago

Thanks, @drieJAC