Added code for hiding guidance pages and updated backstop reference files
@@ -24,6 +24,13 @@ from app.main.views.sub_navigation_dictionaries import (
|
|||||||
from app.utils.user import user_is_logged_in
|
from app.utils.user import user_is_logged_in
|
||||||
from notifications_utils.url_safe_token import generate_token
|
from notifications_utils.url_safe_token import generate_token
|
||||||
|
|
||||||
|
feature_guidance_enabled = os.getenv('FEATURE_GUIDANCE_ENABLED', 'false').lower() == 'true'
|
||||||
|
|
||||||
|
# Hook to check for guidance routes
|
||||||
|
@main.before_request
|
||||||
|
def check_guidance_feature():
|
||||||
|
if request.path.startswith("/guidance") and not feature_guidance_enabled:
|
||||||
|
abort(404)
|
||||||
|
|
||||||
@main.route("/")
|
@main.route("/")
|
||||||
def index():
|
def index():
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
const { urls, baseUrl } = require('./urls');
|
const { urls, baseUrl } = require('./urls');
|
||||||
|
|
||||||
const MISMATCH_THRESHOLD = 0.2;
|
const MISMATCH_THRESHOLD = 0.3;
|
||||||
const SCREENSHOT_DELAY = 2000;
|
const SCREENSHOT_DELAY = 2000;
|
||||||
|
|
||||||
const createScenariosFromUrls = (urls, delay = SCREENSHOT_DELAY) => {
|
const createScenariosFromUrls = (urls, delay = SCREENSHOT_DELAY) => {
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 371 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 511 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 349 KiB After Width: | Height: | Size: 349 KiB |
|
Before Width: | Height: | Size: 834 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 325 KiB After Width: | Height: | Size: 323 KiB |
|
Before Width: | Height: | Size: 168 KiB After Width: | Height: | Size: 169 KiB |
|
Before Width: | Height: | Size: 168 KiB After Width: | Height: | Size: 169 KiB |
|
Before Width: | Height: | Size: 216 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 418 KiB After Width: | Height: | Size: 417 KiB |
|
Before Width: | Height: | Size: 171 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 376 KiB After Width: | Height: | Size: 374 KiB |
|
Before Width: | Height: | Size: 282 KiB After Width: | Height: | Size: 282 KiB |
|
Before Width: | Height: | Size: 461 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 558 KiB After Width: | Height: | Size: 558 KiB |
|
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 115 KiB |
|
Before Width: | Height: | Size: 189 KiB After Width: | Height: | Size: 188 KiB |
|
Before Width: | Height: | Size: 448 KiB After Width: | Height: | Size: 86 KiB |