diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md
index 287ff4fedf40..a58671cb1ec9 100644
--- a/cli/CHANGELOG.md
+++ b/cli/CHANGELOG.md
@@ -10,6 +10,7 @@ _Released 04/25/2023 (PENDING)_
**Bugfixes:**
- Fixed an issue where setting `videoCompression` to `0` would cause the video output to be broken. `0` is now treated as false. Addresses [#5191](https://github.com/cypress-io/cypress/issues/5191) and [#24595](https://github.com/cypress-io/cypress/issues/24595).
+- Fixed an issue on the [Debug page](https://on.cypress.io/debug-page) where the passing run status would appear even if the Cypress Cloud organization was over its monthly test result limit. Addresses [#26528](https://github.com/cypress-io/cypress/issues/26528).
## 12.10.0
diff --git a/packages/app/src/debug/DebugContainer.cy.tsx b/packages/app/src/debug/DebugContainer.cy.tsx
index 41d12fc8ed25..24c2688710eb 100644
--- a/packages/app/src/debug/DebugContainer.cy.tsx
+++ b/packages/app/src/debug/DebugContainer.cy.tsx
@@ -191,7 +191,7 @@ describe('', () => {
it('handled usage exceeded', () => {
mountTestRun('overLimit')
- cy.findByRole('link', { name: 'Contact admin' }).should('have.attr', 'href', 'http://localhost:3000?utmMedium=Debug+Tab&utmSource=Binary%3A+Launchpad')
+ cy.findByRole('link', { name: 'Contact admin' }).should('be.visible').should('have.attr', 'href', 'http://localhost:3000?utmMedium=Debug+Tab&utmSource=Binary%3A+Launchpad')
cy.percySnapshot()
})
@@ -199,10 +199,20 @@ describe('', () => {
it('handles retention exceeded', () => {
mountTestRun('overLimitRetention')
- cy.findByRole('link', { name: 'Contact admin' }).should('have.attr', 'href', 'http://localhost:3000?utmMedium=Debug+Tab&utmSource=Binary%3A+Launchpad')
+ cy.findByRole('link', { name: 'Contact admin' }).should('be.visible').should('have.attr', 'href', 'http://localhost:3000?utmMedium=Debug+Tab&utmSource=Binary%3A+Launchpad')
cy.percySnapshot()
})
+
+ it('does not show passing message if run is hidden', () => {
+ mountTestRun('overLimitPassed')
+
+ cy.contains('Well Done!').should('not.exist')
+
+ cy.contains('All your tests passed.').should('not.exist')
+
+ cy.findByRole('link', { name: 'Contact admin' }).should('be.visible').should('have.attr', 'href', 'http://localhost:3000?utmMedium=Debug+Tab&utmSource=Binary%3A+Launchpad')
+ })
})
context('cancelled', () => {
diff --git a/packages/app/src/debug/DebugPageDetails.vue b/packages/app/src/debug/DebugPageDetails.vue
index 5746b948be60..35abbcbb4c0f 100644
--- a/packages/app/src/debug/DebugPageDetails.vue
+++ b/packages/app/src/debug/DebugPageDetails.vue
@@ -22,7 +22,7 @@
v-if="['PASSED', 'OVERLIMIT'].includes(status) || isHidden"
class="flex flex-col flex-grow w-full p-12 justify-center items-center align-middle "
>
-
+
>