Compare commits
2 commits
ec122e86b8
...
7731eb1155
| Author | SHA1 | Date | |
|---|---|---|---|
| 7731eb1155 | |||
| 49b5a91f4a |
4 changed files with 21 additions and 9 deletions
18
build.gradle
18
build.gradle
|
|
@ -28,13 +28,23 @@ tasks.register('coverage') {
|
|||
}
|
||||
|
||||
tasks.register('frontendE2E', Exec) {
|
||||
description = 'Run Playwright E2E tests in Docker (CI mode)'
|
||||
workingDir = file("${rootProject.projectDir}/frontend")
|
||||
commandLine 'npm', 'run', 'test:e2e:ci'
|
||||
group = 'verification'
|
||||
description = 'Run Playwright E2E tests in Docker (same stack as Forgejo CI)'
|
||||
dependsOn frontendTest
|
||||
workingDir = rootProject.projectDir
|
||||
environment 'POSTGRES_DB', 'bilhej'
|
||||
environment 'POSTGRES_USER', 'bilhej'
|
||||
environment 'POSTGRES_PASSWORD', 'test_pw_ci_123'
|
||||
environment 'JWT_SECRET', 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
|
||||
environment 'STRIPE_SECRET_KEY', 'sk_test_fake'
|
||||
environment 'STRIPE_WEBHOOK_SECRET', 'whsec_fake'
|
||||
environment 'STRIPE_PRICE_ID', 'price_fake'
|
||||
commandLine 'docker', 'compose', '-f', 'docker-compose.e2e.yml',
|
||||
'up', '--build', '--abort-on-container-exit', '--exit-code-from', 'playwright'
|
||||
}
|
||||
|
||||
tasks.named('check').configure {
|
||||
dependsOn frontendLint, frontendTest
|
||||
dependsOn frontendLint, frontendTest, frontendE2E
|
||||
}
|
||||
|
||||
tasks.register('up', Exec) {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
"test:watch": "vitest",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
"test:e2e": "playwright test",
|
||||
"test:e2e:ci": "docker compose -f ../docker-compose.ci.yml up --build --abort-on-container-exit --exit-code-from playwright"
|
||||
"test:e2e:ci": "docker compose -f ../docker-compose.e2e.yml up --build --abort-on-container-exit --exit-code-from playwright"
|
||||
},
|
||||
"dependencies": {
|
||||
"pinia": "^3.0.4",
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@ const loading = ref(true)
|
|||
const error = ref('')
|
||||
const statusError = ref('')
|
||||
const trackingError = ref('')
|
||||
const activeFilter = ref<'all' | 'processing' | 'paid_group' | 'pending_payment'>(
|
||||
'all',
|
||||
)
|
||||
const activeFilter = ref<
|
||||
'all' | 'processing' | 'paid_group' | 'pending_payment'
|
||||
>('all')
|
||||
const searchQuery = ref('')
|
||||
const trackingInputValues = reactive<Record<string, string>>({})
|
||||
const messageModalOrder = ref<AdminOrder | null>(null)
|
||||
|
|
|
|||
|
|
@ -87,7 +87,9 @@ onMounted(async () => {
|
|||
|
||||
<div class="orders__card-meta">
|
||||
<span class="orders__meta-label">Beställnings-ID</span>
|
||||
<span class="orders__meta-value orders__order-id">{{ order.id }}</span>
|
||||
<span class="orders__meta-value orders__order-id">{{
|
||||
order.id
|
||||
}}</span>
|
||||
|
||||
<span class="orders__meta-label">Meddelande</span>
|
||||
<span class="orders__meta-value orders__message">{{
|
||||
|
|
|
|||
Loading…
Reference in a new issue