From 165a86b29615bbaad16c053ba2481d0862ca0502 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Tue, 15 Aug 2023 12:15:16 -0400 Subject: [PATCH] use appId env var --- tests/cypress/integration/notifications.cy.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/cypress/integration/notifications.cy.js b/tests/cypress/integration/notifications.cy.js index af03291..3d6632a 100644 --- a/tests/cypress/integration/notifications.cy.js +++ b/tests/cypress/integration/notifications.cy.js @@ -2,6 +2,7 @@ const notifications = require('../fixtures/notifications.json'); describe('Notifications', () => { + let appClass = '.' + Cypress.env('appId'); before(() => { @@ -42,7 +43,7 @@ describe('Notifications', () => { .should('not.exist'); // cy.visit('/wp-admin/admin.php?page=' + Cypress.env('pluginId') + '#/settings'); - cy.get('.wppbh-app-navitem-Settings').click(); + cy.get( appClass + '-app-navitem-Settings').click(); cy.wait(500); cy.get('.newfold-notifications-wrapper #notification-test-1')