Plugins #14
@@ -141,7 +141,7 @@ async function registerUser(page: Page, username: string, displayName: string):
|
||||
}
|
||||
|
||||
async function installGrantAndActivatePlugin(page: Page, installFromStore: boolean): Promise<void> {
|
||||
await page.getByRole('button', { name: 'Plugins' }).click();
|
||||
await page.getByRole('button', { name: 'Plugin Store' }).click();
|
||||
await expect(page).toHaveURL(/\/plugin-store/, { timeout: 20_000 });
|
||||
await expect(page.getByTestId('plugin-store-page')).toBeVisible({ timeout: 20_000 });
|
||||
|
||||
|
||||
@@ -23,8 +23,8 @@ test.describe('Plugin manager UI', () => {
|
||||
await expect(page).toHaveURL(/\/room\//, { timeout: 30_000 });
|
||||
});
|
||||
|
||||
await test.step('Open visible Plugins button', async () => {
|
||||
await page.getByRole('button', { name: 'Plugins' }).click();
|
||||
await test.step('Open visible Plugin Store button', async () => {
|
||||
await page.getByRole('button', { name: 'Plugin Store' }).click();
|
||||
await expect(page).toHaveURL(/\/plugin-store/, { timeout: 10_000 });
|
||||
await expect(page.getByTestId('plugin-store-page')).toBeVisible({ timeout: 10_000 });
|
||||
});
|
||||
|
||||
@@ -415,13 +415,11 @@ export class ServerSearchComponent implements OnInit {
|
||||
description: currentUser.description,
|
||||
profileUpdatedAt: currentUser.profileUpdatedAt
|
||||
});
|
||||
this.webrtc.joinRoom(server.id, currentUser.oderId || currentUser.id, wsUrl);
|
||||
this.webrtc.sendRawMessage({
|
||||
this.webrtc.sendRawMessageToSignalUrl(wsUrl, {
|
||||
type: 'server_icon_sync_request',
|
||||
serverId: server.id,
|
||||
iconUpdatedAt: 0
|
||||
});
|
||||
window.setTimeout(() => this.webrtc.leaveRoom(server.id), 15_000);
|
||||
} catch {
|
||||
/* discovery icons are best-effort */
|
||||
}
|
||||
|
||||
@@ -304,6 +304,11 @@ export class WebRTCService implements OnDestroy {
|
||||
this.signalingTransportHandler.sendRawMessage(message);
|
||||
}
|
||||
|
||||
/** Send a raw JSON payload through a specific signaling WebSocket. */
|
||||
sendRawMessageToSignalUrl(signalUrl: string, message: Record<string, unknown>): boolean {
|
||||
return this.signalingTransportHandler.sendRawMessageToSignalUrl(signalUrl, message);
|
||||
}
|
||||
|
||||
/**
|
||||
* Track the currently-active server ID (for server-scoped operations).
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user