From 3a817474db3c295d657a6d2cba81bbead60a964a Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Thu, 14 Nov 2024 15:32:06 -0500 Subject: [PATCH 1/3] rename file for clarity and fix typo --- ...{ai-notification.cy.js => modal-notification.cy.js} | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename tests/cypress/integration/{ai-notification.cy.js => modal-notification.cy.js} (98%) diff --git a/tests/cypress/integration/ai-notification.cy.js b/tests/cypress/integration/modal-notification.cy.js similarity index 98% rename from tests/cypress/integration/ai-notification.cy.js rename to tests/cypress/integration/modal-notification.cy.js index 3294fe6..88fb247 100644 --- a/tests/cypress/integration/ai-notification.cy.js +++ b/tests/cypress/integration/modal-notification.cy.js @@ -1,7 +1,7 @@ // import { wpLogin, wpCli } from '../wp-module-support/utils.cy'; -const aiNotification = [ +const modalNotification = [ { id: 'test-ai', locations: [ @@ -30,7 +30,7 @@ describe( 'AI Notification', { testIsolation: true }, () => { method: 'GET', url: /newfold-notifications(\/|%2F)v1(\/|%2F)notifications/, }, - aiNotification + modalNotification ).as( 'notifications' ); cy.visit( '/wp-admin/admin.php?page=' + @@ -60,13 +60,13 @@ describe( 'AI Notification', { testIsolation: true }, () => { cy.get( '.ai-sitegen-modal' ).should( 'not.visible' ); } ); - it( 'redirecta to AI onboarding when TRY NOW button is clicked', () => { + it( 'redirects to AI onboarding when TRY NOW button is clicked', () => { cy.intercept( { method: 'GET', url: /newfold-notifications(\/|%2F)v1(\/|%2F)notifications/, }, - aiNotification + modalNotification ).as( 'notifications' ); cy.visit( '/wp-admin/admin.php?page=' + @@ -91,7 +91,7 @@ describe( 'AI Notification', { testIsolation: true }, () => { method: 'GET', url: /newfold-notifications(\/|%2F)v1(\/|%2F)notifications/, }, - aiNotification + modalNotification ).as( 'notifications' ); cy.visit( '/wp-admin/admin.php?page=' + From be1244c136772b1e6c7bbf234496919e9e22990e Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Thu, 14 Nov 2024 15:35:31 -0500 Subject: [PATCH 2/3] temporary change: test in develop in plugins with updated testIsolation merged but not yet deployed --- .github/workflows/brand-plugin-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/brand-plugin-test.yml b/.github/workflows/brand-plugin-test.yml index f31d801..4c69738 100644 --- a/.github/workflows/brand-plugin-test.yml +++ b/.github/workflows/brand-plugin-test.yml @@ -31,6 +31,7 @@ jobs: module-repo: ${{ github.repository }} module-branch: ${{ needs.setup.outputs.branch }} plugin-repo: 'bluehost/bluehost-wordpress-plugin' + plugin-branch: 'develop' secrets: inherit hostgator: From 4c419f1a0b65d98af92891e09c7bd70ffaa56554 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Thu, 14 Nov 2024 16:21:56 -0500 Subject: [PATCH 3/3] revert temporary branch input on workflow --- .github/workflows/brand-plugin-test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/brand-plugin-test.yml b/.github/workflows/brand-plugin-test.yml index 4c69738..f31d801 100644 --- a/.github/workflows/brand-plugin-test.yml +++ b/.github/workflows/brand-plugin-test.yml @@ -31,7 +31,6 @@ jobs: module-repo: ${{ github.repository }} module-branch: ${{ needs.setup.outputs.branch }} plugin-repo: 'bluehost/bluehost-wordpress-plugin' - plugin-branch: 'develop' secrets: inherit hostgator: