diff --git a/packages/frontend-shared/src/locales/en-US.json b/packages/frontend-shared/src/locales/en-US.json
index 47b9aca4653a..3616f57af15b 100644
--- a/packages/frontend-shared/src/locales/en-US.json
+++ b/packages/frontend-shared/src/locales/en-US.json
@@ -652,7 +652,11 @@
"empty": {
"title": "Copy the command below to record your first run",
"description": "Review the {0} to Cypress Cloud",
- "link": "guide on recording runs"
+ "link": "guide on recording runs",
+ "gitRepositoryNotDetected": "Git repository not detected",
+ "ensureGitSetupCorrectly": "Cypress uses Git to associate runs with your local state. As a fallback, all runs for your project are shown. Please ensure that version control is set up correctly.",
+ "noRunsFoundForBranch": "No runs found for your branch",
+ "noRunsForBranchMessage": "Cypress uses Git to show runs for your branch. As a fallback, all runs for your project are shown. Ensure that version control is properly configured and that you are sending Git information to Cypress Cloud."
},
"results": {
"skipped": "skipped",
@@ -739,10 +743,12 @@
"link": "guide on recording runs"
},
"gitRepositoryNotDetected": "Git repository not detected",
- "ensureGitSetupCorrectly": "Cypress uses Git to associate runs with your local state. Please ensure that version control is set up correctly.",
+ "ensureGitSetupCorrectly": "Cypress uses Git to associate runs with your local state. Please ensure that Git is properly configured for your project.",
"learnAboutRecordingSrText": "about recording a run to Cypress Cloud",
"learnAboutDebuggingSrText": "about debugging CI failures in Cypress",
"learnAboutProjectSetupSrText": "about project setup in Cypress",
+ "noRunsFoundForBranch": "No runs found for your branch",
+ "noRunsForBranchMessage": "Cypress uses Git to show runs for your branch. Ensure that version control is properly configured and that you are sending Git information to Cypress Cloud.",
"slideshow": {
"tour": {
"title": "Record your first test run to Cypress Cloud",
diff --git a/packages/frontend-shared/src/store/user-project-status-store.ts b/packages/frontend-shared/src/store/user-project-status-store.ts
index 28e798470c48..508f44437487 100644
--- a/packages/frontend-shared/src/store/user-project-status-store.ts
+++ b/packages/frontend-shared/src/store/user-project-status-store.ts
@@ -28,6 +28,7 @@ export interface UserProjectStatusState {
isNotFound: boolean
isCTConfigured: boolean
hasDetectedCtFramework: boolean
+ isUsingGit: boolean
}
userData?: LoginUserData
promptsShown: {
@@ -82,6 +83,7 @@ export const useUserProjectStatusStore = defineStore({
isNotFound: false,
isCTConfigured: false,
hasDetectedCtFramework: false,
+ isUsingGit: false,
},
promptsShown: {},
bannersState: {},
diff --git a/packages/frontend-shared/src/warning/Warning.cy.tsx b/packages/frontend-shared/src/warning/Warning.cy.tsx
index 6512ec6c0f38..497292a8dc9c 100644
--- a/packages/frontend-shared/src/warning/Warning.cy.tsx
+++ b/packages/frontend-shared/src/warning/Warning.cy.tsx
@@ -48,4 +48,16 @@ describe('', () => {
cy.get(`[aria-label=${defaultMessages.components.alert.dismissAriaLabel}`).first().click()
cy.wrap(onUpdate).should('be.called')
})
+
+ it('renders with a Learn more Link', () => {
+ // eslint-disable-next-line prefer-template
+ const messagePlusLink = message + '[Learn more](https://on.cypress.io/git-info)'
+
+ cy.mount(() => (