diff --git a/cypress/e2e/po/detail/fleet/tabs/git-repos-tab.po.ts b/cypress/e2e/po/detail/fleet/tabs/git-repos-tab.po.ts index 28cf07cde7d..cd80e49cb42 100644 --- a/cypress/e2e/po/detail/fleet/tabs/git-repos-tab.po.ts +++ b/cypress/e2e/po/detail/fleet/tabs/git-repos-tab.po.ts @@ -9,4 +9,8 @@ export default class GitReposTab extends ComponentPo { list() { return new BaseResourceList('#repos [data-testid="sortable-table-list-container"]'); } + + addRepostoryButton() { + return this.self().get('.btn').contains('Add Repository'); + } } diff --git a/cypress/e2e/tests/pages/fleet/fleet-clusters.spec.ts b/cypress/e2e/tests/pages/fleet/fleet-clusters.spec.ts index a7b176514c6..eb73e59c72a 100644 --- a/cypress/e2e/tests/pages/fleet/fleet-clusters.spec.ts +++ b/cypress/e2e/tests/pages/fleet/fleet-clusters.spec.ts @@ -157,6 +157,15 @@ describe('Fleet Clusters', { tags: ['@fleet', '@adminUser'] }, () => { }); }); + it('Git Repos Tab Add Repository button takes you to the correct page', function() { + const fleetClusterDetailsPage = new FleetClusterDetailsPo(namespace, this.rke2Ec2ClusterName); + + fleetClusterDetailsPage.waitForPage(null, 'repos'); + fleetClusterDetailsPage.gitReposTab().addRepostoryButton().click(); + + cy.url().should('include', `${ Cypress.config().baseUrl }/c/_/fleet/fleet.cattle.io.gitrepo/create`); + }); + it('adding git repo should add bundles on downstream cluster (deployments added)', function() { const deploymentsList = new WorkloadsDeploymentsListPagePo(this.clusterId); diff --git a/shell/components/fleet/FleetIntro.vue b/shell/components/fleet/FleetIntro.vue index 6c0c458c239..a8a8857e99e 100644 --- a/shell/components/fleet/FleetIntro.vue +++ b/shell/components/fleet/FleetIntro.vue @@ -1,31 +1,25 @@