Skip to content

Commit

Permalink
fix smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya-radhakrishnan committed Sep 23, 2022
1 parent 6ec648b commit fbe819d
Show file tree
Hide file tree
Showing 2 changed files with 162 additions and 106 deletions.
13 changes: 4 additions & 9 deletions smoke-test/test_e2e.py
Expand Up @@ -1236,8 +1236,8 @@ def test_native_user_endpoints(frontend_session):

# Test getting the invite token
get_invite_token_json = {
"query": """query getNativeUserInviteToken {\n
getNativeUserInviteToken{\n
"query": """query getInviteToken {\n
getInviteToken{\n
inviteToken\n
}\n
}"""
Expand All @@ -1251,9 +1251,7 @@ def test_native_user_endpoints(frontend_session):

assert get_invite_token_res_data
assert get_invite_token_res_data["data"]
invite_token = get_invite_token_res_data["data"]["getNativeUserInviteToken"][
"inviteToken"
]
invite_token = get_invite_token_res_data["data"]["getInviteToken"]["inviteToken"]
assert invite_token is not None
assert "errors" not in get_invite_token_res_data

Expand Down Expand Up @@ -1386,10 +1384,7 @@ def test_native_user_endpoints(frontend_session):
assert unauthenticated_get_invite_token_res_data
assert "errors" in unauthenticated_get_invite_token_res_data
assert unauthenticated_get_invite_token_res_data["data"]
assert (
unauthenticated_get_invite_token_res_data["data"]["getNativeUserInviteToken"]
is None
)
assert unauthenticated_get_invite_token_res_data["data"]["getInviteToken"] is None

unauthenticated_create_reset_token_json = {
"query": """mutation createNativeUserResetToken($input: CreateNativeUserResetTokenInput!) {\n
Expand Down

0 comments on commit fbe819d

Please sign in to comment.