Refactor New Portfolio page according to designs.
New designs call for a streamlined New Portfolio page, with far fewer input options. This commit refactors that page according to those designs. Some of the route functions in this commit refer to a "step 1" of creating a new Portfolio. Though there is no "step 2" right now, the designs call for a multistep flow for Portfolio creation process, so this commit sets the stage for that.
This commit is contained in:
@@ -15,7 +15,7 @@ PASSWORD = os.getenv("ATAT_BA_PASSWORD", "")
|
||||
DISABLE_VERIFY = os.getenv("DISABLE_VERIFY", "true").lower() == "true"
|
||||
|
||||
# Alpha numerics for random entity names
|
||||
LETTERS = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890"
|
||||
LETTERS = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890" #pragma: allowlist secret
|
||||
|
||||
NEW_PORTFOLIO_CHANCE = 10
|
||||
NEW_APPLICATION_CHANCE = 10
|
||||
@@ -141,15 +141,8 @@ def create_portfolio(l):
|
||||
new_portfolio_form = l.client.get("/portfolios/new")
|
||||
new_portfolio_body = {
|
||||
"name": f"Load Test Created - {''.join(choices(LETTERS, k=5))}",
|
||||
"defense_component": "Army, Department of the",
|
||||
"defense_component": "army",
|
||||
"description": "Test",
|
||||
"app_migration": "none",
|
||||
"native_apps": "yes",
|
||||
"complexity": "storage",
|
||||
"complexity_other": "",
|
||||
"dev_team": "civilians",
|
||||
"dev_team_other": "",
|
||||
"team_experience": "none",
|
||||
"csrf_token": get_csrf_token(new_portfolio_form),
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user