Merge pull request #2074 from GSA/2073---new-best-practice-side-nav-end2end

e2e test for best practice content pages
This commit is contained in:
Beverly Nguyen
2024-11-20 09:33:55 -08:00
committed by GitHub
3 changed files with 93 additions and 1 deletions

View File

@@ -2,7 +2,15 @@ import os
import secrets
from urllib.parse import unquote
from flask import abort, current_app, redirect, render_template, request, url_for
from flask import (
abort,
current_app,
jsonify,
redirect,
render_template,
request,
url_for,
)
from flask_login import current_user
from app import redis_client, status_api_client
@@ -35,6 +43,17 @@ def check_feature_flags():
abort(404)
@main.route("/test/feature-flags")
def test_feature_flags():
return jsonify(
{
"FEATURE_BEST_PRACTICES_ENABLED": current_app.config[
"FEATURE_BEST_PRACTICES_ENABLED"
]
}
)
@main.route("/")
def index():
if current_user and current_user.is_authenticated: