-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(secrets): cypress tests for secrets #161
Conversation
"There was an error fetching your available repositories... Click Refresh or try again later!" | ||
] | ||
] | ||
viewResourceError { resourceLabel = "your available repositories", testLabel = "repos" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a helper class for the "try again later!" we test for
in | ||
( { model | secretsModel = { secretsModel | secrets = mergedSecrets } }, Cmd.none ) | ||
|
||
Err error -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added account for GET failure
@@ -89,3 +91,17 @@ wrapErrorContent content = | |||
|
|||
else | |||
" (" ++ content ++ ")" | |||
|
|||
|
|||
{-| viewResourceError : renders generic error message when there is a problem fetching a resource from Vela. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
helper function for rendering GET failures
@@ -1067,6 +1069,45 @@ secretTypeToString type_ = | |||
"repo" | |||
|
|||
|
|||
{-| secretsErrorLabel : helper to convert SecretType to string for printing GET secrets resource errors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added some more info for GET failures on particular secrets data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* wrapped secret in RemoteData, added resourceError helper class, added remotedata failure logic to secrets page * lint * adding test labels to Table.View * more generic cypress tests for rendering secrets * cypress tests. linting. * oof, forgot to update hooks * remove redundant case * updating grammar in add repos test
No description provided.