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

Added tests examples for nuxt/movies #83

Open
wants to merge 58 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
516f9f7
chore: using bun instead of pnpm
Archetipo95 Nov 22, 2024
1c614b0
chore: updated some deps
Archetipo95 Nov 22, 2024
add56df
fix: typecheck for translation classes in Modal.vue
Archetipo95 Nov 25, 2024
caf66dc
feat: init tests
Archetipo95 Nov 26, 2024
5521d9c
feat: init e2e tests
Archetipo95 Nov 26, 2024
336ef5d
fix: linted files
Archetipo95 Nov 26, 2024
8ae6f4d
chore: bumped bun version
Archetipo95 Nov 26, 2024
13bbd04
chore: disabled prettier and linted files with eslint
Archetipo95 Nov 27, 2024
7f2179d
feat: add CI for unit test
Archetipo95 Nov 27, 2024
83a0004
docs: update README to reflect testing integration
Archetipo95 Nov 27, 2024
26d1cf6
fix: renamed correctly workflows folder
Archetipo95 Nov 27, 2024
9e5701e
Merge pull request #1 from Archetipo95/test
Archetipo95 Nov 27, 2024
18b8559
chore: renamed test unit in unit tests
Archetipo95 Nov 27, 2024
f725a3f
feat: add caching for Bun dependencies in CI workflow
Archetipo95 Nov 27, 2024
58c688a
feat: add component tests
Archetipo95 Nov 27, 2024
e12b32c
feat: enable fail-fast strategy in CI workflows
Archetipo95 Nov 27, 2024
9152dbc
feat: use frozen lockfile for Bun dependency installation in CI workf…
Archetipo95 Nov 27, 2024
906d1b9
feat: add browser configuration for Playwright tests with multiple de…
Archetipo95 Nov 27, 2024
678e988
fix: standardize workflow names to use consistent capitalization
Archetipo95 Nov 27, 2024
ef1f3d5
feat: add Playwright test workflow with caching and fail-fast strategy
Archetipo95 Nov 27, 2024
5909e15
refactor: rename Playwright workflow to End-to-End Tests
Archetipo95 Nov 27, 2024
9967f0e
fix: rename workflow files for consistent naming convention
Archetipo95 Nov 27, 2024
9f1c7ad
fix: update homepage test headings to reflect correct title
Archetipo95 Nov 27, 2024
b147842
fix: update homepage test to check for correct heading text
Archetipo95 Nov 27, 2024
91b6129
fix: rename upload step for clarity in E2E tests workflow
Archetipo95 Nov 27, 2024
f3fc445
feat: add mock media and tests for media handling functions
Archetipo95 Nov 28, 2024
5737e01
refactor: remove component test configuration and update unit test in…
Archetipo95 Nov 28, 2024
70f9548
fix: update test components to render with 'TestComponent' for clarity
Archetipo95 Nov 28, 2024
7cb3a8d
test: add unit tests for useRouteParam with mock route parameters
Archetipo95 Dec 3, 2024
52b7b6a
test: add unit tests for utility functions including formatDate, form…
Archetipo95 Dec 3, 2024
f3accd6
fix: update import path for types in tmdb composable
Archetipo95 Dec 5, 2024
8efef60
feat: add code generation script for Playwright testing
Archetipo95 Dec 5, 2024
de58c22
refactor: remove obsolete example unit test file
Archetipo95 Dec 9, 2024
acfd61e
fix: simplify unit test command in package.json
Archetipo95 Dec 9, 2024
4658f82
test: add unit tests for Credits component and improve template data …
Archetipo95 Dec 9, 2024
acea4d4
test: add unit tests for CreditsList component and enhance template d…
Archetipo95 Dec 9, 2024
18b537f
test: add unit tests for Photos component and create mock data utilities
Archetipo95 Dec 9, 2024
5db5b13
test: refactor mockPerson function in Card component tests for improv…
Archetipo95 Dec 9, 2024
f8d6e2e
test: refactor Credits component tests to use mock data utilities for…
Archetipo95 Dec 9, 2024
2fd3b6d
test: update helper function comments and replace createMockMedia wit…
Archetipo95 Dec 9, 2024
44751c2
test: add unit tests for PersonInfo component and enhance template da…
Archetipo95 Dec 9, 2024
2948c72
test: add unit tests for PersonDetails component and enhance template…
Archetipo95 Dec 9, 2024
55110ad
test: add coverage configuration for components and composables in Vi…
Archetipo95 Dec 9, 2024
2095ae9
test: update CreditsList tests to handle media items with optional ti…
Archetipo95 Dec 9, 2024
6372570
test: add unit test for personCard component to handle missing charac…
Archetipo95 Dec 9, 2024
68f6bf5
test: update formatLang tests to handle unknown languages and specifi…
Archetipo95 Dec 9, 2024
0cdd05c
test: refactor personCard tests to use dynamic base URL for image source
Archetipo95 Dec 10, 2024
0b0153d
test: add unit tests for PhotoCard component to verify image renderin…
Archetipo95 Dec 10, 2024
0277c1c
refactor: remove unused mockMedia function and update import path in …
Archetipo95 Dec 10, 2024
ef9e69c
chore: update package dependencies and rename unit coverage script
Archetipo95 Dec 10, 2024
055bbfe
test: add unit tests for PhotoModal component and improve accessibili…
Archetipo95 Dec 10, 2024
347a66c
feat: add mockVideo function
Archetipo95 Dec 12, 2024
73b6e7a
test: add unit tests for Card component
Archetipo95 Dec 12, 2024
88b234d
test: clean up and remove redundant comment in tests
Archetipo95 Dec 12, 2024
93e6d26
test: add unit tests for StarsRate component
Archetipo95 Dec 12, 2024
81f992f
chore: reverted from Bun to pnpm for package management in workflows
Archetipo95 Dec 18, 2024
1c6e14c
chore: lint project + add lint test
danielroe Dec 18, 2024
80a3dae
ci: add typecheck
danielroe Dec 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: typecheck for translation classes in Modal.vue
Archetipo95 committed Nov 25, 2024
commit add56df9675c10a43561d7e14c2b7458c31b40ba
4 changes: 2 additions & 2 deletions components/photo/Modal.vue
Original file line number Diff line number Diff line change
@@ -47,12 +47,12 @@ useEventListener('keydown', (e) => {
aria-hidden="true"
max-w-full max-h-full object-contain
/>
<div absolute left-0 top="1/2" translate="y--1/2">
<div absolute left-0 top="1/2" un-translate="y--1/2">
<button type="button" py10 px4 bg-black:30 op10 hover:op100 @click="prev()">
<div i-ph-caret-left-light text-3xl text-white />
</button>
</div>
<div absolute right-0 top="1/2" translate="y--1/2">
<div absolute right-0 top="1/2" un-translate="y--1/2">
<button type="button" py10 px4 bg-black:30 op10 hover:op100 @click="next()">
<div i-ph-caret-right-light text-3xl text-white />
</button>