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

Add Cypress test to verify error thrown for duplicate bed name #7206

Closed
3 tasks
nihal467 opened this issue Feb 12, 2024 · 6 comments
Closed
3 tasks

Add Cypress test to verify error thrown for duplicate bed name #7206

nihal467 opened this issue Feb 12, 2024 · 6 comments
Assignees

Comments

@nihal467
Copy link
Member

Describe the test
Follow-up: ohcnetwork/care#1783

Currently, the backend throws an error, if we create a duplicate bed name for the same location, so verify the same

Check-list

  • add the test to locations.cy.ts file
  • it should be in the POM approach
  • create multiple beds with the same name and verify the backend throws the error
@konavivekramakrishna
Copy link
Contributor

@nihal467 can you please assign me

@konavivekramakrishna
Copy link
Contributor

konavivekramakrishna commented Feb 14, 2024

@sainak

image

when creating bed with same name getting 500 instead of 4xx

@sainak
Copy link
Member

sainak commented Feb 14, 2024

fixed in ohcnetwork/care#1894

@konavivekramakrishna
Copy link
Contributor

@nihal467

how is this new Cypress test different from the already existing Cypress test for verifying the creation of duplicate beds?

https://github.com/coronasafe/care_fe/blob/develop/cypress/e2e/facility_spec/locations.cy.ts#L87-L94

@nihal467
Copy link
Member Author

@konavivekramakrishna Sorry, my bad, the test already exist, so closing this issue and feel free to assign other open issue

@nihal467 nihal467 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 16, 2024
@github-project-automation github-project-automation bot moved this from Triage to Done in Care Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants