Skip to content

Commit

Permalink
Merge pull request #12 from newfold-labs/update/test-and-fix-typo
Browse files Browse the repository at this point in the history
fix typo and test
  • Loading branch information
circlecube authored Oct 18, 2023
2 parents 042b1ca + 1ffd382 commit 040c635
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/AdminNotices.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function ( Notification $notification ) use ( $page ) {
* Open the notifactions container
*/
public static function openContainer() {
echo wp_kses_post( '<div id="newfold-notificatons" class="newfold-notifications-wrapper">' );
echo wp_kses_post( '<div id="newfold-notifications" class="newfold-notifications-wrapper">' );
}

/**
Expand Down
3 changes: 1 addition & 2 deletions tests/cypress/integration/notifications.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 040c635

Please sign in to comment.