Conversation
|
Thanks for opening this pull request! 🥳 |
|
@ethanbalgobin is attempting to deploy a commit to the Opcotech Team on Vercel. A member of the Team first needs to authorize it. |
Signed-off-by: Ethan Balgobin <ethanbalgo@hotmail.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
gabor-boros
left a comment
There was a problem hiding this comment.
I mostly have minor comments related to formatting and TodoPriority type usage. However, some e2e tests seems to fail (mostly due to duplicated element selector results).
| export * from "./pages"; | ||
| export * from "./permissions"; | ||
| export * from "./toast"; | ||
| export * from "./todo"; No newline at end of file |
There was a problem hiding this comment.
| export * from "./todo"; | |
| export * from "./todo"; | |
| await page.getByPlaceholder(/Type a command/i).waitFor(); | ||
| await page.getByRole("option", { name: /Add Todo/i }).click(); | ||
| await page.getByRole("heading", { name: "Add Todo" }).waitFor(); | ||
| } No newline at end of file |
| } | ||
| await this.submit(); | ||
| } | ||
| } No newline at end of file |
| async fillTodoFields(fields: { | ||
| title?: string; | ||
| description?: string; | ||
| priority?: "normal" | "important" | "urgent" | "critical"; |
There was a problem hiding this comment.
I think we have a TodoPriority type in the generated client that we could use here.
| async updateTodo(fields: { | ||
| title?: string; | ||
| description?: string; | ||
| priority?: "normal" | "important" | "urgent" | "critical"; |
There was a problem hiding this comment.
If the TodoPriority type exists, we could use that here too.
| priority: "important", | ||
| dueDate: tomorrow, | ||
| }; | ||
| } No newline at end of file |
| // Check for reduced opacity on todo item | ||
| await expect(todoItem).toHaveClass(/opacity-75/); | ||
| }); | ||
| }); No newline at end of file |
| await waitForSuccessToast(page, "Todo added successfully"); | ||
| expect(await todoSection.getTodoCount()).toBeGreaterThanOrEqual(2); | ||
| }); | ||
| }); No newline at end of file |
|
|
||
| expect(await todoSection.isOpen()).toBe(true); | ||
| }); | ||
| }); No newline at end of file |
| const editButton = todoItem.getByTitle("Edit todo"); | ||
| expect(await editButton.isDisabled()).toBe(true); | ||
| }); | ||
| }); No newline at end of file |
There was a problem hiding this comment.
@gabor-boros Thanks for the feedback, will get these sorted!
|
Hey @ethanbalgobin, this is just a check in if you would like to continue the work on this |
Description
This pull request adds end-to-end testing for the TODO list feature.
The test suite covers all core TODO functionality including:
Dependencies
Screenshots
Screenshots if applicable, otherwise omit this section.
Testing instructions
docker-compose up -dChecklist
added
Signed-off-by: <YOUR NAME>to the commit trail where<YOUR NAME>ismy name.