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 8ecd06d
Show file tree
Hide file tree
Showing 2 changed files with 171 additions and 113 deletions.
18 changes: 7 additions & 11 deletions smoke-test/test_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

@pytest.fixture(scope="session")
def wait_for_healthchecks():
wait_for_healthcheck_util()
# wait_for_healthcheck_util()
yield


Expand Down Expand Up @@ -1236,11 +1236,12 @@ 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($input: GetInviteTokenInput!) {\n
getInviteToken(input: $input){\n
inviteToken\n
}\n
}"""
}""",
"variables": {"input": {}},
}

get_invite_token_response = frontend_session.post(
Expand All @@ -1251,9 +1252,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 +1385,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
Loading

0 comments on commit 8ecd06d

Please sign in to comment.