Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
25 changes: 25 additions & 0 deletions e2e/legal-privacy.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { expect, test } from '@playwright/test';
import { installMockApi } from './fixtures/mock-api';

test('profile opens the privacy policy and back returns to profile', async ({
page,
}) => {
await installMockApi(page);
await page.goto('/profile');
await page.getByText('Política de privacidad').click();

await expect(page).toHaveURL(/\/legal\/privacy/);
await expect(
page.getByRole('heading', {
name: '1. IDENTIFICACIÓN DEL RESPONSABLE DEL TRATAMIENTO',
}),
).toBeVisible();
await expect(
page.getByRole('heading', { name: '25. VIGENCIA' }),
).toBeVisible();
await expect(page.getByText('Próximamente')).toHaveCount(0);
await expect(page.getByText('Kontigo')).toHaveCount(0);

await page.getByRole('button', { name: 'Volver' }).click();
await expect(page).toHaveURL(/\/profile$/);
});
4 changes: 0 additions & 4 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -758,10 +758,6 @@
"version": "Wallet Bloque v{{version}}"
},
"legal": {
"privacy": {
"comingSoonTitle": "Coming soon",
"comingSoonDescription": "We're preparing this policy. You'll be able to read it here soon."
},
"fees": {
"description": "These are the current costs for each operation in your wallet. The final cost is always confirmed before you send or top up.",
"generalSection": "General",
Expand Down
4 changes: 0 additions & 4 deletions src/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -758,10 +758,6 @@
"version": "Wallet Bloque v{{version}}"
},
"legal": {
"privacy": {
"comingSoonTitle": "Próximamente",
"comingSoonDescription": "Estamos preparando esta política. Muy pronto vas a poder consultarla aquí."
},
"fees": {
"description": "Estos son los costos vigentes por cada operación en tu wallet. El costo final se confirma siempre antes de enviar o recargar.",
"generalSection": "General",
Expand Down
Loading
Loading