Closed patrickhladun closed 1 week ago
@patrickhladun is attempting to deploy a commit to the Codú Team on Vercel.
A member of the Team first needs to authorize it.
The changes in this pull request enhance the end-to-end testing for the my-posts
page using Playwright. New asynchronous functions, openTab
and openDeleteModal
, are introduced to facilitate navigation and interaction with UI elements. The test suite for authenticated users is updated, and three new test cases are added to verify the functionality of the delete modal, including its closure via "Cancel" and "Close" buttons, and the successful deletion of a published article.
File | Change Summary |
---|---|
e2e/my-posts.spec.ts | Added functions openTab and openDeleteModal . Updated existing tests to utilize openTab . Added three new tests for delete functionality. |
e2e/constants/constants.ts | Updated the value of the constant articleExcerpt from placeholder text to an actual excerpt. |
e2e/setup.ts | Refactored article insertion logic to use an array and Promise.all . Updated bio field in userData . Added type import for Article . |
e2e/utils/utils.ts | Added new function createArticle for database interaction. Updated import statements. |
types/types.ts | Introduced a new interface Article defining the structure of an article object. |
my-posts
page.my-posts
page.my-posts
page.my-posts
page, directly aligning with the focus of the main PR.hacktoberfest-accepted
, hacktoberfest
🐇 In the land of posts, where articles dwell,
New tests have arrived, oh, what a swell!
With modals that open and buttons to close,
Our testing's now stronger, as everyone knows!
So hop with delight, let the coverage grow,
For themy-posts
page shines with a glow! ✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
codu | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 16, 2024 0:17am |
✨ Codu Pull Request 💻
add more tests to https://github.com/codu-code/codu/issues/1169
Pull Request details
openTab
andopenDeleteModal
to streamline modal interactions in tests.Any Breaking changes
Associated Screenshots