fix: recurriing network issue
All checks were successful
Queue Release Build / prepare (push) Successful in 18s
Deploy Web Apps / deploy (push) Successful in 6m32s
Queue Release Build / build-windows (push) Successful in 26m8s
Queue Release Build / build-linux (push) Successful in 40m18s
Queue Release Build / finalize (push) Successful in 42s
All checks were successful
Queue Release Build / prepare (push) Successful in 18s
Deploy Web Apps / deploy (push) Successful in 6m32s
Queue Release Build / build-windows (push) Successful in 26m8s
Queue Release Build / build-linux (push) Successful in 40m18s
Queue Release Build / finalize (push) Successful in 42s
This commit is contained in:
@@ -35,6 +35,18 @@ test.describe('Direct message flow', () => {
|
||||
});
|
||||
});
|
||||
|
||||
test('delivers a live DM to the recipient conversation', async ({ createClient }) => {
|
||||
const scenario = await createDmScenario(createClient);
|
||||
const liveMessage = `Live DM ${uniqueName('msg')}`;
|
||||
|
||||
await openDmFromRoomUserCard(scenario.alice.page, 'Bob');
|
||||
await scenario.alice.page.getByTestId('dm-input').fill(liveMessage);
|
||||
await scenario.alice.page.getByTestId('dm-input').press('Enter');
|
||||
|
||||
await openDmFromRoomUserCard(scenario.bob.page, 'Alice');
|
||||
await expect(scenario.bob.page.locator('app-dm-chat').getByText(liveMessage)).toBeVisible({ timeout: 20_000 });
|
||||
});
|
||||
|
||||
test('shows friend and message actions on the search people list', async ({ createClient }) => {
|
||||
const scenario = await createDmScenario(createClient);
|
||||
|
||||
@@ -110,6 +122,15 @@ async function registerUser(page: Page, username: string, displayName: string):
|
||||
await expect(page).toHaveURL(/\/search/, { timeout: 15_000 });
|
||||
}
|
||||
|
||||
async function openDmFromRoomUserCard(page: Page, displayName: string): Promise<void> {
|
||||
const userCard = page.locator('[data-testid^="room-user-card-"]', { hasText: displayName }).first();
|
||||
|
||||
await expect(userCard).toBeVisible({ timeout: 20_000 });
|
||||
await userCard.getByRole('button', { name: `Message ${displayName}` }).click();
|
||||
await expect(page).toHaveURL(/\/dm\//, { timeout: 15_000 });
|
||||
await expect(page.getByRole('heading', { name: displayName })).toBeVisible({ timeout: 10_000 });
|
||||
}
|
||||
|
||||
function uniqueName(prefix: string): string {
|
||||
return `${prefix}-${Date.now()}-${Math.random().toString(36)
|
||||
.slice(2, 8)}`;
|
||||
|
||||
Reference in New Issue
Block a user