feat(web): translate location, travel, and world-map screen copy to English
This commit is contained in:
@@ -75,7 +75,7 @@ describe('LocationPageComponent', () => {
|
||||
const image = element.querySelector('img') as HTMLImageElement;
|
||||
|
||||
expect(image.getAttribute('src')).toBe('/images/backgrounds/Aschestrasse.png');
|
||||
expect(image.getAttribute('alt')).toBe('Ortsansicht: Verbrannte Straße');
|
||||
expect(image.getAttribute('alt')).toBe('Location view: Verbrannte Straße');
|
||||
});
|
||||
|
||||
it('places every hotspot on the artwork', async () => {
|
||||
@@ -205,14 +205,14 @@ describe('LocationPageComponent', () => {
|
||||
|
||||
const actions = element.querySelectorAll<HTMLButtonElement>('[data-action]');
|
||||
expect([...actions].every((action) => action.disabled)).toBe(true);
|
||||
expect(element.textContent).toContain('Einen Moment…');
|
||||
expect(element.textContent).toContain('One moment…');
|
||||
});
|
||||
|
||||
it('renders a restrained loading state that shows no misplaced hotspots', async () => {
|
||||
const { element } = await setup(null);
|
||||
|
||||
expect(element.querySelector('[role="status"]')?.textContent).toContain(
|
||||
'Der Ort wird geladen',
|
||||
'Loading location',
|
||||
);
|
||||
expect(element.querySelectorAll('app-location-poi')).toHaveLength(0);
|
||||
});
|
||||
@@ -224,7 +224,7 @@ describe('LocationPageComponent', () => {
|
||||
fixture.detectChanges();
|
||||
|
||||
expect(element.querySelector('[role="alert"]')?.textContent).toContain(
|
||||
'Ort konnte nicht geladen werden.',
|
||||
'Could not load location.',
|
||||
);
|
||||
|
||||
element.querySelector<HTMLButtonElement>('[data-location-retry]')?.click();
|
||||
|
||||
Reference in New Issue
Block a user