From 19e6fb540d88eb75fdb71f51a89eeb25bdf49ddd Mon Sep 17 00:00:00 2001 From: mahula Date: Sat, 29 Jun 2024 09:50:24 +0200 Subject: [PATCH] adept e2e table test to changes --- tests/cypress/e2e/pages/WorldcafePage.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/cypress/e2e/pages/WorldcafePage.ts b/tests/cypress/e2e/pages/WorldcafePage.ts index e96dd1a339..034f975de8 100644 --- a/tests/cypress/e2e/pages/WorldcafePage.ts +++ b/tests/cypress/e2e/pages/WorldcafePage.ts @@ -1,6 +1,3 @@ -/* eslint-disable @typescript-eslint/no-unsafe-member-access */ -/* eslint-disable no-prototype-builtins */ -/* eslint-disable @typescript-eslint/no-unsafe-call */ class WorldcafePage { userMenuBtn: string = '.user-info' signOutBtn: string = '.sign-out' @@ -19,10 +16,8 @@ class WorldcafePage { enterMyRoom() { // eslint-disable-next-line @typescript-eslint/no-unsafe-argument cy.intercept('POST', Cypress.env('backendURL'), (req) => { - if ( - req.body.hasOwnProperty('query') && - req.body.query.includes('{ mutation {\n joinMyRoom\n}') - ) { + // eslint-disable-next-line @typescript-eslint/no-unsafe-call, no-prototype-builtins, @typescript-eslint/no-unsafe-member-access + if (req.body.hasOwnProperty('query') && req.body.query.includes('joinMyRoom')) { req.alias = 'postJoinMyRoomQuery' } })