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

[playwright] feat: Page object examples #41

Merged
merged 4 commits into from
May 11, 2024
Merged

[playwright] feat: Page object examples #41

merged 4 commits into from
May 11, 2024

Conversation

helloitsdave
Copy link
Owner

Refactored tests to use page object model
Implemented backend delete user endpoint (for future use in test cleanup)

Copy link

Coverage after merging page-objects into main

98.11%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   authenticateToken.ts100%100%100%
   hash.ts100%100%100%
   index.ts50%50%83.33%31–33
   prisma.ts100%100%100%
src/__mocks__
   prisma.ts100%100%100%
src/routes
   loginRoutes.ts100%100%100%
   noteRoutes.ts100%100%100%
   userRoutes.ts100%100%100%

Copy link

Coverage after merging page-objects into main

97.92%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   App.tsx87.50%75%95.95%29–30, 39–40
   NoteApp.tsx94.44%100%96.99%70–74
src/api
   apiService.ts100%85.71%96.67%88–90
src/components
   Header.tsx100%100%100%
   Login.tsx81.82%100%98.59%32, 32–33
   Note.tsx100%100%100%
   NoteForm.tsx100%100%100%
   NoteFormModal.tsx100%100%100%
   NoteGrid.tsx100%100%100%
   RegistrationForm.tsx84.62%100%96.77%51, 51–55
   RegistrationLink.tsx100%100%100%
   Spinner.tsx100%100%100%

Copy link

Coverage after merging page-objects into main

98.11%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   authenticateToken.ts100%100%100%
   hash.ts100%100%100%
   index.ts50%50%83.33%31–33
   prisma.ts100%100%100%
src/__mocks__
   prisma.ts100%100%100%
src/routes
   loginRoutes.ts100%100%100%
   noteRoutes.ts100%100%100%
   userRoutes.ts100%100%100%

Copy link

Coverage after merging page-objects into main

97.92%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   App.tsx87.50%75%95.95%29–30, 39–40
   NoteApp.tsx94.44%100%96.99%70–74
src/api
   apiService.ts100%85.71%96.67%88–90
src/components
   Header.tsx100%100%100%
   Login.tsx81.82%100%98.59%32, 32–33
   Note.tsx100%100%100%
   NoteForm.tsx100%100%100%
   NoteFormModal.tsx100%100%100%
   NoteGrid.tsx100%100%100%
   RegistrationForm.tsx84.62%100%96.77%51, 51–55
   RegistrationLink.tsx100%100%100%
   Spinner.tsx100%100%100%

Copy link

Coverage after merging page-objects into main

98.11%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   authenticateToken.ts100%100%100%
   hash.ts100%100%100%
   index.ts50%50%83.33%31–33
   prisma.ts100%100%100%
src/__mocks__
   prisma.ts100%100%100%
src/routes
   loginRoutes.ts100%100%100%
   noteRoutes.ts100%100%100%
   userRoutes.ts100%100%100%

Copy link

Coverage after merging page-objects into main

97.92%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   App.tsx87.50%75%95.95%29–30, 39–40
   NoteApp.tsx94.44%100%96.99%70–74
src/api
   apiService.ts100%85.71%96.67%88–90
src/components
   Header.tsx100%100%100%
   Login.tsx81.82%100%98.59%32, 32–33
   Note.tsx100%100%100%
   NoteForm.tsx100%100%100%
   NoteFormModal.tsx100%100%100%
   NoteGrid.tsx100%100%100%
   RegistrationForm.tsx84.62%100%96.77%51, 51–55
   RegistrationLink.tsx100%100%100%
   Spinner.tsx100%100%100%

Copy link

Coverage after merging page-objects into main

98.11%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   authenticateToken.ts100%100%100%
   hash.ts100%100%100%
   index.ts50%50%83.33%31–33
   prisma.ts100%100%100%
src/__mocks__
   prisma.ts100%100%100%
src/routes
   loginRoutes.ts100%100%100%
   noteRoutes.ts100%100%100%
   userRoutes.ts100%100%100%

Copy link

Coverage after merging page-objects into main

97.92%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   App.tsx87.50%75%95.95%29–30, 39–40
   NoteApp.tsx94.44%100%96.99%70–74
src/api
   apiService.ts100%85.71%96.67%88–90
src/components
   Header.tsx100%100%100%
   Login.tsx81.82%100%98.59%32, 32–33
   Note.tsx100%100%100%
   NoteForm.tsx100%100%100%
   NoteFormModal.tsx100%100%100%
   NoteGrid.tsx100%100%100%
   RegistrationForm.tsx84.62%100%96.77%51, 51–55
   RegistrationLink.tsx100%100%100%
   Spinner.tsx100%100%100%

@helloitsdave helloitsdave merged commit 9ca3046 into main May 11, 2024
7 checks passed
@helloitsdave helloitsdave deleted the page-objects branch May 11, 2024 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant