Update marketing packages and checkout copy
This commit is contained in:
@@ -107,7 +107,7 @@ class CustomerEmailRenderTest extends TestCase
|
||||
$user->forceFill(['tenant_id' => $tenant->id])->save();
|
||||
|
||||
$package = Package::factory()->create([
|
||||
'name' => 'Standard',
|
||||
'name' => 'Classic',
|
||||
'type' => 'endcustomer',
|
||||
'max_photos' => 500,
|
||||
'max_guests' => 200,
|
||||
|
||||
@@ -26,7 +26,7 @@ class PurchaseConfirmationMailTest extends TestCase
|
||||
$user->forceFill(['tenant_id' => $tenant->id])->save();
|
||||
|
||||
$package = Package::factory()->create([
|
||||
'name' => 'Standard',
|
||||
'name' => 'Classic',
|
||||
'type' => 'endcustomer',
|
||||
'max_photos' => 500,
|
||||
'max_guests' => 200,
|
||||
@@ -51,7 +51,7 @@ class PurchaseConfirmationMailTest extends TestCase
|
||||
$html = $mailable->render();
|
||||
|
||||
$this->assertStringContainsString('Die Fotospiel.App', $html);
|
||||
$this->assertStringContainsString('Standard', $html);
|
||||
$this->assertStringContainsString('Classic', $html);
|
||||
$this->assertStringContainsString('txn_123', $html);
|
||||
$this->assertStringContainsString('https://paddle.test/invoice/123', $html);
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ class SeedDemoSwitcherTenantsTest extends TestCase
|
||||
|
||||
Package::factory()->create([
|
||||
'slug' => 'standard',
|
||||
'name' => 'Standard',
|
||||
'name' => 'Classic',
|
||||
'type' => 'endcustomer',
|
||||
'max_events_per_year' => 5,
|
||||
]);
|
||||
|
||||
@@ -65,8 +65,8 @@ class DashboardSummaryTest extends TestCase
|
||||
$package = Package::factory()
|
||||
->reseller()
|
||||
->create([
|
||||
'name' => 'Standard',
|
||||
'name_translations' => ['de' => 'Standard', 'en' => 'Standard'],
|
||||
'name' => 'Classic',
|
||||
'name_translations' => ['de' => 'Classic', 'en' => 'Classic'],
|
||||
'price' => 59,
|
||||
]);
|
||||
|
||||
@@ -96,7 +96,7 @@ class DashboardSummaryTest extends TestCase
|
||||
$activePackagePayload = Arr::get($payload, 'active_package');
|
||||
|
||||
$this->assertIsArray($activePackagePayload);
|
||||
$this->assertSame('Standard', Arr::get($activePackagePayload, 'name'));
|
||||
$this->assertSame('Classic', Arr::get($activePackagePayload, 'name'));
|
||||
$this->assertSame($activePackage->remaining_events, Arr::get($activePackagePayload, 'remaining_events'));
|
||||
|
||||
$this->assertSame(
|
||||
|
||||
@@ -37,10 +37,10 @@ class EventListTest extends TenantTestCase
|
||||
{
|
||||
$package = Package::factory()->create([
|
||||
'type' => 'endcustomer',
|
||||
'name' => 'Standard',
|
||||
'name' => 'Classic',
|
||||
'name_translations' => [
|
||||
'de' => 'Standard',
|
||||
'en' => 'Standard',
|
||||
'de' => 'Classic',
|
||||
'en' => 'Classic',
|
||||
],
|
||||
'price' => 59,
|
||||
'gallery_days' => 45,
|
||||
@@ -75,7 +75,7 @@ class EventListTest extends TenantTestCase
|
||||
|
||||
$this->assertIsArray($matchingEvent['package']);
|
||||
$this->assertSame($package->id, $matchingEvent['package']['id']);
|
||||
$this->assertSame('Standard', $matchingEvent['package']['name']);
|
||||
$this->assertSame('Classic', $matchingEvent['package']['name']);
|
||||
$this->assertSame('59.00', $matchingEvent['package']['price']);
|
||||
}
|
||||
|
||||
|
||||
@@ -129,7 +129,7 @@ class GiftVoucherServiceTest extends TestCase
|
||||
config()->set('gift-vouchers.tiers', [
|
||||
[
|
||||
'key' => 'gift-standard-usd',
|
||||
'label' => 'Gift Standard (USD)',
|
||||
'label' => 'Gift Classic (USD)',
|
||||
'amount' => 65.00,
|
||||
'currency' => 'USD',
|
||||
'paddle_price_id' => 'pri_usd_123',
|
||||
|
||||
@@ -40,7 +40,7 @@ test.describe('Marketing frontend smoke', () => {
|
||||
await acceptCookies.click();
|
||||
}
|
||||
|
||||
const packageCards = page.locator('section >> text=/Starter|Standard|Premium/');
|
||||
const packageCards = page.locator('section >> text=/Starter|Classic|Premium/');
|
||||
await expect(packageCards.first()).toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -65,7 +65,7 @@ test.describe('Paddle sandbox full flow (staging)', () => {
|
||||
});
|
||||
|
||||
try {
|
||||
// Jump directly into wizard for Standard package (2)
|
||||
// Jump directly into wizard for Classic package (2)
|
||||
await page.goto(`${baseUrl}/${locale}/${checkoutSlug}/2`);
|
||||
|
||||
await dismissConsentBanner(page);
|
||||
|
||||
@@ -2,7 +2,7 @@ import { test, expectFixture as expect } from '../helpers/test-fixtures';
|
||||
|
||||
const shouldRun = process.env.E2E_TESTING_API === '1';
|
||||
|
||||
test.describe('Standard package checkout with Paddle completion', () => {
|
||||
test.describe('Classic package checkout with Paddle completion', () => {
|
||||
test.skip(!shouldRun, 'Set E2E_TESTING_API=1 to enable checkout tests that use /api/_testing endpoints.');
|
||||
test('registers, applies coupon, and reaches confirmation', async ({
|
||||
page,
|
||||
@@ -67,7 +67,7 @@ test.describe('Standard package checkout with Paddle completion', () => {
|
||||
|
||||
const standardDetailsButton = page
|
||||
.locator('[data-slot="card"]')
|
||||
.filter({ hasText: /Standard/i })
|
||||
.filter({ hasText: /Classic/i })
|
||||
.getByRole('button', { name: /Details ansehen|Details anzeigen|View details/i })
|
||||
.first();
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ const demoTenantCredentials = {
|
||||
password: process.env.E2E_DEMO_TENANT_PASSWORD ?? 'Demo1234!',
|
||||
};
|
||||
|
||||
test.describe('Standard package checkout with coupons', () => {
|
||||
test.describe('Classic package checkout with coupons', () => {
|
||||
test.skip(!shouldRun, 'Set E2E_TESTING_API=1 to enable checkout tests that use /api/_testing endpoints.');
|
||||
test('applies seeded coupon and shows discount summary', async ({
|
||||
page,
|
||||
@@ -25,7 +25,7 @@ test.describe('Standard package checkout with coupons', () => {
|
||||
|
||||
const dialog = page.getByRole('dialog');
|
||||
await expect(dialog).toBeVisible();
|
||||
await expect(dialog.getByRole('heading', { name: /Standard/i })).toBeVisible();
|
||||
await expect(dialog.getByRole('heading', { name: /Classic/i })).toBeVisible();
|
||||
|
||||
await dialog.getByRole('link', { name: /Jetzt bestellen|Order now|Jetzt buchen/i }).click();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user