mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-07 17:23:05 +02:00
Add MQTT removal migration and fix tests + docs
This commit is contained in:
@@ -31,7 +31,7 @@ test.describe('Apprise integration settings', () => {
|
||||
await page.getByRole('button', { name: 'Apprise' }).click();
|
||||
|
||||
// Should navigate to the detail/edit view with default name
|
||||
await expect(page.getByDisplayValue('Apprise')).toBeVisible();
|
||||
await expect(page.locator('#fanout-edit-name')).toHaveValue('Apprise');
|
||||
|
||||
// Fill in notification URL
|
||||
const urlsTextarea = page.locator('#fanout-apprise-urls');
|
||||
@@ -135,7 +135,7 @@ test.describe('Apprise integration settings', () => {
|
||||
await page.getByText('All except listed channels/contacts').click();
|
||||
|
||||
// Should show channel and contact lists with exclude label
|
||||
await expect(page.getByText('(exclude)')).toBeVisible();
|
||||
await expect(page.getByText('Channels (exclude)')).toBeVisible();
|
||||
|
||||
// Go back
|
||||
await page.getByText('← Back to list').click();
|
||||
@@ -158,9 +158,9 @@ test.describe('Apprise integration settings', () => {
|
||||
await page.getByText('Settings').click();
|
||||
await page.getByRole('button', { name: /MQTT.*Forwarding/ }).click();
|
||||
|
||||
// Should show "Disabled" text
|
||||
// Should show "Disabled" status text
|
||||
const row = page.getByText('Disabled Apprise').locator('..');
|
||||
await expect(row.getByText('Disabled')).toBeVisible();
|
||||
await expect(row.getByText('Disabled', { exact: true })).toBeVisible();
|
||||
|
||||
// Edit it
|
||||
await row.getByRole('button', { name: 'Edit' }).click();
|
||||
|
||||
@@ -31,7 +31,7 @@ test.describe('Webhook integration settings', () => {
|
||||
await page.getByRole('button', { name: 'Webhook' }).click();
|
||||
|
||||
// Should navigate to the detail/edit view with default name
|
||||
await expect(page.getByDisplayValue('Webhook')).toBeVisible();
|
||||
await expect(page.locator('#fanout-edit-name')).toHaveValue('Webhook');
|
||||
|
||||
// Fill in webhook URL
|
||||
const urlInput = page.locator('#fanout-webhook-url');
|
||||
@@ -85,7 +85,7 @@ test.describe('Webhook integration settings', () => {
|
||||
await row.getByRole('button', { name: 'Edit' }).click();
|
||||
|
||||
// Should be in edit view
|
||||
await expect(page.getByDisplayValue('API Webhook')).toBeVisible();
|
||||
await expect(page.locator('#fanout-edit-name')).toHaveValue('API Webhook');
|
||||
|
||||
// Change method to PUT
|
||||
await page.locator('#fanout-webhook-method').selectOption('PUT');
|
||||
@@ -129,9 +129,8 @@ test.describe('Webhook integration settings', () => {
|
||||
// Select "Only listed" to see channel/contact checkboxes
|
||||
await page.getByText('Only listed channels/contacts').click();
|
||||
|
||||
// Should show Channels and Contacts sections
|
||||
await expect(page.getByText('Channels')).toBeVisible();
|
||||
await expect(page.getByText('Contacts')).toBeVisible();
|
||||
// Should show Channels section (Contacts only appears if non-repeater contacts exist)
|
||||
await expect(page.getByText('Channels (include)')).toBeVisible();
|
||||
|
||||
// Go back without saving
|
||||
await page.getByText('← Back to list').click();
|
||||
|
||||
Reference in New Issue
Block a user