Skip to content
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

[Bug]: [Fix Issues with all present testcases] #303

Closed
TejasNair9977 opened this issue Sep 1, 2023 · 1 comment · Fixed by #313
Closed

[Bug]: [Fix Issues with all present testcases] #303

TejasNair9977 opened this issue Sep 1, 2023 · 1 comment · Fixed by #313
Assignees
Labels
bug Something isn't working enhancement New feature or request Issue size: 5 Work that doesn't have reference and may take a while Priority: High Needs to be done ASAP Testing Make testcases

Comments

@TejasNair9977
Copy link
Member

TejasNair9977 commented Sep 1, 2023

Description 📝

image

This is not a valid test case, since the response will always contain something, it has to be validated properly.

Also, some GET requests are being sent as POST requests, for example, the above image, and the below image.

Expected Behavior ✨

It should at least contain

    expect(response.headers["content-type"]).toMatch(/json/);
    expect(response.status).toBe(200);
    expect(response.body.res).toMatch(/accreditation updated/);

Actual Behavior ❌

Only contains expect(response.body.res).not.toBeNull();, which even accepts 404.

image

@TejasNair9977 TejasNair9977 added bug Something isn't working enhancement New feature or request Issue size: 5 Work that doesn't have reference and may take a while Priority: High Needs to be done ASAP Testing Make testcases labels Sep 1, 2023
@TejasNair9977 TejasNair9977 added this to the Building Blocks milestone Sep 1, 2023
@sumitst05
Copy link
Contributor

Assign this issue to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request Issue size: 5 Work that doesn't have reference and may take a while Priority: High Needs to be done ASAP Testing Make testcases
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants