feat(web): translate inventory and item-detail screen copy to English
This commit is contained in:
@@ -78,11 +78,11 @@ describe('InventoryDetailPanelComponent', () => {
|
||||
expect((fixture.nativeElement as HTMLElement).querySelector('[data-detail-empty]')).not.toBeNull();
|
||||
});
|
||||
|
||||
it('shows Ausgerüstet for the currently equipped item, with no equip button', async () => {
|
||||
it('shows Equipped for the currently equipped item, with no equip button', async () => {
|
||||
const fixture = await setup({ item: wornSword });
|
||||
const element = fixture.nativeElement as HTMLElement;
|
||||
|
||||
expect(element.querySelector('[data-detail-equipped]')?.textContent).toContain('Ausgerüstet');
|
||||
expect(element.querySelector('[data-detail-equipped]')?.textContent).toContain('Equipped');
|
||||
expect(element.querySelector('[data-detail-equip]')).toBeNull();
|
||||
});
|
||||
|
||||
@@ -90,7 +90,7 @@ describe('InventoryDetailPanelComponent', () => {
|
||||
const fixture = await setup({ item: ashPelt });
|
||||
const element = fixture.nativeElement as HTMLElement;
|
||||
|
||||
expect(element.textContent).toContain('Nicht ausrüstbar');
|
||||
expect(element.textContent).toContain('Not equippable');
|
||||
expect(element.querySelector('[data-detail-equip]')).toBeNull();
|
||||
expect(element.querySelector('[data-detail-equipped]')).toBeNull();
|
||||
});
|
||||
@@ -123,10 +123,10 @@ describe('InventoryDetailPanelComponent', () => {
|
||||
|
||||
const button = element.querySelector<HTMLButtonElement>('[data-detail-equip]');
|
||||
expect(button?.disabled).toBe(false);
|
||||
expect(button?.textContent?.trim()).toBe('Ausrüsten');
|
||||
expect(button?.textContent?.trim()).toBe('Equip');
|
||||
});
|
||||
|
||||
it('emits equip with the characterItemId when Ausrüsten is clicked', async () => {
|
||||
it('emits equip with the characterItemId when Equip is clicked', async () => {
|
||||
const fixture = await setup({ item: banditBlade });
|
||||
const emitted: string[] = [];
|
||||
fixture.componentInstance.equip.subscribe((id: string) => emitted.push(id));
|
||||
|
||||
Reference in New Issue
Block a user