frontend: Update E2E tests to handle optional event text and clean up imports
This commit is contained in:
parent
c93b369a4f
commit
d7cefdfd47
@ -1,3 +1,4 @@
|
||||
import { LeftEventReason } from '@openvidu-meet/typings';
|
||||
import { expect, test } from '@playwright/test';
|
||||
import { MEET_TESTAPP_URL } from '../../config';
|
||||
import {
|
||||
@ -8,7 +9,6 @@ import {
|
||||
leaveRoom,
|
||||
prepareForJoiningRoom
|
||||
} from '../../helpers/function-helpers';
|
||||
import { LeftEventReason } from '@openvidu-meet/typings';
|
||||
|
||||
let subscribedToAppErrors = false;
|
||||
|
||||
@ -279,7 +279,7 @@ test.describe('Web Component E2E Tests', () => {
|
||||
// Check for valid reason values from LeftEventReason enum
|
||||
const validReasons = Object.values(LeftEventReason);
|
||||
|
||||
const hasValidReason = validReasons.some((reason) => eventText.includes(reason));
|
||||
const hasValidReason = validReasons.some((reason) => eventText?.includes(reason));
|
||||
expect(hasValidReason).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { expect, test, Page, BrowserContext } from '@playwright/test';
|
||||
import { expect, test } from '@playwright/test';
|
||||
import { MEET_TESTAPP_URL } from '../../config.js';
|
||||
import {
|
||||
createTestRoom,
|
||||
@ -7,7 +7,6 @@ import {
|
||||
getIframeInShadowDom,
|
||||
getLocalParticipantId,
|
||||
getParticipantIdByName,
|
||||
interactWithElementInIframe,
|
||||
isShareLinkOverlayyHidden,
|
||||
joinRoomAs,
|
||||
leaveRoom,
|
||||
@ -15,7 +14,7 @@ import {
|
||||
openParticipantsPanel,
|
||||
prepareForJoiningRoom,
|
||||
removeParticipantModerator,
|
||||
waitForElementInIframe,
|
||||
waitForElementInIframe
|
||||
} from '../../helpers/function-helpers.js';
|
||||
|
||||
let subscribedToAppErrors = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user