fix logger and dismiss button presses
This commit is contained in:
@@ -126,8 +126,16 @@ async function registerUser(
|
|||||||
page.getByRole("heading", { name: `Welcome ${username}` }),
|
page.getByRole("heading", { name: `Welcome ${username}` }),
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
|
|
||||||
|
await page.pause();
|
||||||
|
const browserUnsupportedToast = page
|
||||||
|
.getByText("Element does not support this browser")
|
||||||
|
.locator("..")
|
||||||
|
.locator("..");
|
||||||
|
|
||||||
// Dismiss incompatible browser toast
|
// Dismiss incompatible browser toast
|
||||||
const dismissButton = page.getByRole("button", { name: "Dismiss" });
|
const dismissButton = browserUnsupportedToast.getByRole("button", {
|
||||||
|
name: "Dismiss",
|
||||||
|
});
|
||||||
try {
|
try {
|
||||||
await expect(dismissButton).toBeVisible({ timeout: 700 });
|
await expect(dismissButton).toBeVisible({ timeout: 700 });
|
||||||
await dismissButton.click();
|
await dismissButton.click();
|
||||||
|
|||||||
@@ -446,7 +446,6 @@ export const GroupCallView: FC<Props> = ({
|
|||||||
|
|
||||||
let body: ReactNode;
|
let body: ReactNode;
|
||||||
if (externalError) {
|
if (externalError) {
|
||||||
logger.debug("External error occurred:", externalError);
|
|
||||||
// If an error was recorded within this component but outside
|
// If an error was recorded within this component but outside
|
||||||
// GroupCallErrorBoundary, create a component that rethrows the error from
|
// GroupCallErrorBoundary, create a component that rethrows the error from
|
||||||
// within the error boundary, so it can be handled uniformly
|
// within the error boundary, so it can be handled uniformly
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ import { type MatrixRTCSession } from "matrix-js-sdk/lib/matrixrtc";
|
|||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
import { BehaviorSubject, map } from "rxjs";
|
import { BehaviorSubject, map } from "rxjs";
|
||||||
import { useObservable } from "observable-hooks";
|
import { useObservable } from "observable-hooks";
|
||||||
import { logger } from "matrix-js-sdk/lib/logger";
|
import { logger as rootLogger } from "matrix-js-sdk/lib/logger";
|
||||||
import {
|
import {
|
||||||
VoiceCallSolidIcon,
|
VoiceCallSolidIcon,
|
||||||
VolumeOnSolidIcon,
|
VolumeOnSolidIcon,
|
||||||
@@ -109,6 +109,8 @@ import { useTrackProcessorObservable$ } from "../livekit/TrackProcessorContext.t
|
|||||||
import { type Layout } from "../state/layout-types.ts";
|
import { type Layout } from "../state/layout-types.ts";
|
||||||
import { ObservableScope } from "../state/ObservableScope.ts";
|
import { ObservableScope } from "../state/ObservableScope.ts";
|
||||||
|
|
||||||
|
const logger = rootLogger.getChild("[InCallView]");
|
||||||
|
|
||||||
const maxTapDurationMs = 400;
|
const maxTapDurationMs = 400;
|
||||||
|
|
||||||
export interface ActiveCallProps
|
export interface ActiveCallProps
|
||||||
|
|||||||
Reference in New Issue
Block a user