Skip to content

Commit

Permalink
adept e2e table test to changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mahula committed Jun 29, 2024
1 parent 4b7853c commit 19e6fb5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/cypress/e2e/pages/WorldcafePage.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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'
}
})
Expand Down

0 comments on commit 19e6fb5

Please sign in to comment.