Check that you see the message on the "site not https"
Test the page with axe.
Confirm that you don't see any colour contrast errors on the page.
Right click on the message "It has been detected that your site is not secured using HTTPS..." press Inspect. Edit the class attribute of the <p> tag containing the message and change it to "ok". You'll see that the message will change to green with light green background.
Run axe again.
Confirm that you don't see any colour contrast errors on the page.
Change the class of the <p> tag containing the message to "error". The text will turn red with a light pinkish background.
Run axe again.
Confirm that you don't see any colour contrast errors on the page.
Prerequisite
Site that is on HTTP and not HTTPS.
axe DevTools
Test
Log in as admin.
Go to Site administration / Server / Environment
Check that you see the message on the " site not https "
Test the page with axe.
Confirm that you don't see any colour contrast errors on the page.
Right click on the message " It has been detected that your site is not secured using HTTPS... " press Inspect. Edit the class attribute of the <p> tag containing the message and change it to "ok". You'll see that the message will change to green with light green background.
Run axe again.
Confirm that you don't see any colour contrast errors on the page.
Change the class of the <p> tag containing the message to "error". The text will turn red with a light pinkish background.
Run axe again.
Confirm that you don't see any colour contrast errors on the page.
Warnings in the environment check don't have sufficient colour contrast.