App: dzien w naglowku edytora w nawiasach - Planujesz teraz [dzien] (dayHeading pl/en, testy)
This commit is contained in:
@@ -161,7 +161,7 @@
|
||||
"removeDayLabel": "Remove day",
|
||||
"removeDayAria": "Remove day",
|
||||
"historyBadge": "History",
|
||||
"dayHeading": "Now planning {{day}}",
|
||||
"dayHeading": "Now planning [{{day}}]",
|
||||
"removeLockedTitle": "Remove a day with history?",
|
||||
"removeLockedDesc": "{{day}} has training history (sessions or a settled status). The day will disappear from the plan, calendar and stats, but the training history will be kept. The change is recorded in the plan history along with your note.",
|
||||
"removeLockedLabel": "Remove despite history",
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
"removeDayLabel": "Usuń dzień",
|
||||
"removeDayAria": "Usuń dzień",
|
||||
"historyBadge": "Historia",
|
||||
"dayHeading": "Planujesz teraz {{day}}",
|
||||
"dayHeading": "Planujesz teraz [{{day}}]",
|
||||
"removeLockedTitle": "Usunąć dzień z historią?",
|
||||
"removeLockedDesc": "{{day}} ma historię treningów (sesje lub rozliczony status). Dzień zniknie z planu, kalendarza i statystyk, ale historia treningowa zostanie zachowana. Zmiana trafi do historii planu razem z notatką.",
|
||||
"removeLockedLabel": "Usuń mimo historii",
|
||||
|
||||
@@ -450,7 +450,7 @@ describe('PlanEditor — data startu i menu kontekstowe', () => {
|
||||
await user.click(screen.getByRole('button', { name: 'dodaj ćwiczenie…' }));
|
||||
await user.click(await screen.findByRole('option', { name: /Przysiady/ }));
|
||||
expect(
|
||||
screen.getByRole('heading', { name: 'Planujesz teraz Poniedziałek' }),
|
||||
screen.getByRole('heading', { name: 'Planujesz teraz [Poniedziałek]' }),
|
||||
).toBeInTheDocument();
|
||||
expect(screen.queryByRole('button', { name: 'Następny dzień' })).not.toBeInTheDocument();
|
||||
expect(screen.queryByRole('button', { name: 'Poprzedni dzień' })).not.toBeInTheDocument();
|
||||
@@ -458,7 +458,7 @@ describe('PlanEditor — data startu i menu kontekstowe', () => {
|
||||
// dodanie Środy (szara komórka) przenosi edycję na nią; nazwa dnia = siatka + nagłówek
|
||||
const dayGroup = screen.getByRole('group', { name: 'Dni treningowe' });
|
||||
await user.click(within(dayGroup).getByRole('button', { name: 'Środa' }));
|
||||
expect(screen.getByRole('heading', { name: 'Planujesz teraz Środa' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('heading', { name: 'Planujesz teraz [Środa]' })).toBeInTheDocument();
|
||||
expect(screen.queryByText('Przysiady')).not.toBeInTheDocument();
|
||||
expect(screen.getAllByRole('button', { name: 'Środa' })).toHaveLength(1);
|
||||
|
||||
@@ -466,7 +466,7 @@ describe('PlanEditor — data startu i menu kontekstowe', () => {
|
||||
await user.click(within(dayGroup).getByRole('button', { name: 'Poniedziałek' }));
|
||||
expect(screen.queryByRole('dialog')).not.toBeInTheDocument();
|
||||
expect(
|
||||
screen.getByRole('heading', { name: 'Planujesz teraz Poniedziałek' }),
|
||||
screen.getByRole('heading', { name: 'Planujesz teraz [Poniedziałek]' }),
|
||||
).toBeInTheDocument();
|
||||
expect(screen.getByText('Przysiady')).toBeInTheDocument();
|
||||
expect(screen.getByText('1 ćwiczenie')).toBeInTheDocument();
|
||||
@@ -482,7 +482,7 @@ describe('PlanEditor — data startu i menu kontekstowe', () => {
|
||||
await user.click(within(dayGroup).getByRole('button', { name: 'Poniedziałek' }));
|
||||
expect(screen.queryByRole('dialog')).not.toBeInTheDocument();
|
||||
expect(
|
||||
screen.getByRole('heading', { name: 'Planujesz teraz Poniedziałek' }),
|
||||
screen.getByRole('heading', { name: 'Planujesz teraz [Poniedziałek]' }),
|
||||
).toBeInTheDocument();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user