Sending method, the owner's answers: nothing changes until another option is picked; the panel warns before the save

- a save that sends the method already shown, while nothing is stored, stores nothing: the site keeps sending
  exactly as before and keeps following what is filled in, until somebody picks ANOTHER option
- the state block reads the form as it is edited and warns at once when "Own SMTP server" is picked with server,
  user name or password empty, or "Microsoft Graph" on a server without GRAPH_* (graphReady in the panel state);
  it reloads after every save
- texts, doctor's info finding, docs, skills, changelog; reference e2e checks the warning

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-26 23:15:42 +01:00
co-authored by Claude Fable 5.2
parent 8c19391590
commit dc3e594d38
17 changed files with 107 additions and 33 deletions
+3
View File
@@ -90,9 +90,12 @@ test.describe('the mail service', () => {
await page.locator('.rs__option', { hasText: /Own SMTP server|Własny serwer SMTP/ }).click()
await expect(page.locator('#field-smtpHost')).toBeVisible()
await expect(page.locator('#field-smtpUser')).toBeVisible()
// picked, not saved, and the server is empty: the block warns at once
await expect(page.locator('[data-mail-method-warning="smtp"]')).toBeVisible()
await method.locator('.rs__control').click()
await page.locator('.rs__option', { hasText: /IWSN/ }).click()
await expect(page.locator('#field-smtpHost')).toHaveCount(0)
await expect(page.locator('[data-mail-method-warning]')).toHaveCount(0)
// (Payload takes the login cookie only from the site's own origin, so the request says where it comes from)
const status = await page.request.get('/api/iapl/mail-relay/status', { headers: { origin: baseURL! } })