We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 982bc69 commit 9211ca7Copy full SHA for 9211ca7
tests/index.test.ts
@@ -10,12 +10,10 @@ describe('index page i18n', () => {
10
expect(h1.text()).toBe('Spend your crypto in Lugano')
11
})
12
13
- it('displays Spanish title with query parameter', async () => {
14
- const component = await mountSuspended(IndexPage, {
15
- route: '/?locale=es',
16
- })
+ it('switches to Spanish when locale is changed', async () => {
+ const component = await mountSuspended(IndexPage)
17
18
- // Manually set locale to test query param handling
+ // Change locale (simulates what the query param plugin does in production)
19
const i18n = component.vm.$i18n
20
await i18n.setLocale('es')
21
0 commit comments