Skip to content

Commit

Permalink
Fix image list (given server version won't match the rancher image's …
Browse files Browse the repository at this point in the history
…we've supplied)
  • Loading branch information
richard-cox committed May 1, 2024
1 parent 8df97b4 commit 41889fb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cypress/e2e/tests/pages/generic/about.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,21 +91,21 @@ describe('About Page', { testIsolation: 'off', tags: ['@generic', '@adminUser',

aboutPage.getLinuxDownloadLink().click();

cy.getRancherResource('v1', 'management.cattle.io.settings', 'server-version').then((resp: Cypress.Response<any>) => {
const rancherVersion = resp.body['value'];
cy.getRancherResource('v1', 'management.cattle.io.settings', 'agent-image').then((resp: Cypress.Response<any>) => {
const agentImage = resp.body['value'];

cy.readFile(downloadedFilename).should('contain', rancherVersion);
cy.readFile(downloadedFilename).should('contain', agentImage);
});
});

it('can download Windows Image List', () => {
const downloadedFilename = path.join(downloadsFolder, 'rancher-windows-images.txt');

aboutPage.getWindowsDownloadLink().click();
cy.getRancherResource('v1', 'management.cattle.io.settings', 'server-version').then((resp: Cypress.Response<any>) => {
const rancherVersion = resp.body['value'];
cy.getRancherResource('v1', 'management.cattle.io.settings', 'agent-image').then((resp: Cypress.Response<any>) => {
const agentImage = resp.body['value'];

cy.readFile(downloadedFilename).should('contain', rancherVersion);
cy.readFile(downloadedFilename).should('contain', agentImage);
});
});
});
Expand Down

0 comments on commit 41889fb

Please sign in to comment.