From 1ffd382c649f15ac15241feaa90fb68b677ecbba Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Wed, 18 Oct 2023 11:52:09 -0400 Subject: [PATCH] fix typo and test --- includes/AdminNotices.php | 2 +- tests/cypress/integration/notifications.cy.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/AdminNotices.php b/includes/AdminNotices.php index a4ee69a..81d9db5 100644 --- a/includes/AdminNotices.php +++ b/includes/AdminNotices.php @@ -65,7 +65,7 @@ function ( Notification $notification ) use ( $page ) { * Open the notifactions container */ public static function openContainer() { - echo wp_kses_post( '
' ); + echo wp_kses_post( '
' ); } /** diff --git a/tests/cypress/integration/notifications.cy.js b/tests/cypress/integration/notifications.cy.js index 50dace3..d5a1498 100644 --- a/tests/cypress/integration/notifications.cy.js +++ b/tests/cypress/integration/notifications.cy.js @@ -163,8 +163,7 @@ describe('Notifications', () => { // so we can't intercept with test notifications it('Container Exists in wp-admin', () => { cy.visit('/wp-admin/index.php'); - cy.wait(1000); - cy.get('.newfold-notifications-wrapper').should('have.length', 1); + cy.get('#newfold-notifications').should('exist'); }); // click events triggered