Skip to content

Commit

Permalink
comment out test instead of using .skip
Browse files Browse the repository at this point in the history
  • Loading branch information
mantis-toboggan-md committed Jun 21, 2024
1 parent ac3f3a3 commit 4abdb21
Showing 1 changed file with 43 additions and 43 deletions.
86 changes: 43 additions & 43 deletions cypress/e2e/tests/pages/fleet/gitrepo.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,49 +202,49 @@ describe('Git Repo', { testIsolation: 'off', tags: ['@fleet', '@adminUser'] }, (
// - These bundles never successfully deployed given the fleet-agent failed to deploy (given the server-url in tests is localhost)
// - They passed before because fleet reported gitrepo status.resources for bundles that failed to deploy, now it does not and the test fails
// testing https://github.com/rancher/dashboard/issues/9866
it.skip('in git repo details view we should display the correct bundle count', () => {
const basicRepos = [
{
name: 'e2e-git-repo1-test-bundle-count',
repo: 'https://github.com/rancher/fleet-examples.git',
branch: 'master',
path: 'simple'
},
{
name: 'e2e-git-repo2-test-bundle-count',
repo: 'https://github.com/rancher/fleet-examples.git',
branch: 'master',
path: 'single-cluster/helm'
}
];
const workspace = 'fleet-local';

// generate a fake cluster that can be usable in fleet
generateFakeClusterDataAndIntercepts(fakeProvClusterId, fakeMgmtClusterId);

// create first git-repo in fleet-local
cy.createRancherResource('v1', 'fleet.cattle.io.gitrepos', gitRepoTargetAllClustersRequest(workspace, basicRepos[0].name, basicRepos[0].repo, basicRepos[0].branch, basicRepos[0].path)).then(() => {
reposToDelete.push(`fleet-local/${ basicRepos[0].name }`);
});

// create second git-repo in fleet-local
cy.createRancherResource('v1', 'fleet.cattle.io.gitrepos', gitRepoTargetAllClustersRequest(workspace, basicRepos[1].name, basicRepos[1].repo, basicRepos[1].branch, basicRepos[1].path)).then(() => {
reposToDelete.push(`fleet-local/${ basicRepos[1].name }`);
});

// go to fleet gitrepo
listPage.goTo();
listPage.waitForPage();
listPage.selectWorkspace(workspace);

listPage.goToDetailsPage(basicRepos[1].name);

const gitRepoDetails = new FleetGitRepoDetailsPo('fleet-local', basicRepos[1].name);

gitRepoDetails.waitForPage();
gitRepoDetails.gitRepoTabs().clickTabWithSelector('[data-testid="bundles"]');
gitRepoDetails.bundlesCount().should('contain', '1');
});
// it('in git repo details view we should display the correct bundle count', () => {
// const basicRepos = [
// {
// name: 'e2e-git-repo1-test-bundle-count',
// repo: 'https://github.com/rancher/fleet-examples.git',
// branch: 'master',
// path: 'simple'
// },
// {
// name: 'e2e-git-repo2-test-bundle-count',
// repo: 'https://github.com/rancher/fleet-examples.git',
// branch: 'master',
// path: 'single-cluster/helm'
// }
// ];
// const workspace = 'fleet-local';

// // generate a fake cluster that can be usable in fleet
// generateFakeClusterDataAndIntercepts(fakeProvClusterId, fakeMgmtClusterId);

// // create first git-repo in fleet-local
// cy.createRancherResource('v1', 'fleet.cattle.io.gitrepos', gitRepoTargetAllClustersRequest(workspace, basicRepos[0].name, basicRepos[0].repo, basicRepos[0].branch, basicRepos[0].path)).then(() => {
// reposToDelete.push(`fleet-local/${ basicRepos[0].name }`);
// });

// // create second git-repo in fleet-local
// cy.createRancherResource('v1', 'fleet.cattle.io.gitrepos', gitRepoTargetAllClustersRequest(workspace, basicRepos[1].name, basicRepos[1].repo, basicRepos[1].branch, basicRepos[1].path)).then(() => {
// reposToDelete.push(`fleet-local/${ basicRepos[1].name }`);
// });

// // go to fleet gitrepo
// listPage.goTo();
// listPage.waitForPage();
// listPage.selectWorkspace(workspace);

// listPage.goToDetailsPage(basicRepos[1].name);

// const gitRepoDetails = new FleetGitRepoDetailsPo('fleet-local', basicRepos[1].name);

// gitRepoDetails.waitForPage();
// gitRepoDetails.gitRepoTabs().clickTabWithSelector('[data-testid="bundles"]');
// gitRepoDetails.bundlesCount().should('contain', '1');
// });

after(() => {
reposToDelete.forEach((r) => cy.deleteRancherResource('v1', 'fleet.cattle.io.gitrepo', r));
Expand Down

0 comments on commit 4abdb21

Please sign in to comment.