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
e2e tests for temporal data - RISDEV-3848 #319
Conversation
RISDEV-3848
Adds test for editing Joins tests for adding, editing, deleting together (for now) RISDEV-3848
RISDEV-3848
RISDEV-3848
Hey @hamo225, this is my review:
Is the await saveButton.click() not enough for waiting? But this could be related to the next point
|
frontend/e2e/navigate-to-temporal-data-page-and-test-content.spec.ts
Outdated
Show resolved
Hide resolved
frontend/e2e/navigate-to-temporal-data-page-and-test-content.spec.ts
Outdated
Show resolved
Hide resolved
frontend/e2e/navigate-to-temporal-data-page-and-test-content.spec.ts
Outdated
Show resolved
Hide resolved
frontend/e2e/navigate-to-temporal-data-page-and-test-content.spec.ts
Outdated
Show resolved
Hide resolved
frontend/e2e/navigate-to-temporal-data-page-and-test-content.spec.ts
Outdated
Show resolved
Hide resolved
const isDisabled = await deleteButton.isDisabled() | ||
expect(isDisabled).toBe(true) | ||
|
||
await page.request.put( |
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.
What about this PUT request? You are not expecting anything from it. And it does not change anything on the state.
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.
The PUT is not part of the user interaction. Its for the test, to set up and reset the environment. I have moved this into a function that will be called at the start and end of the test. This whole setup for the tests will change soon i hope.
- removes await with toBe assertion as does not return a promise - removed the waitForResponse as not needed - created a setup function that to be used at the start and finish of the test RISDEV-3848
RISDEV-3848
No description provided.