Skip to content

Commit

Permalink
Update S3 backup target of settings
Browse files Browse the repository at this point in the history
  • Loading branch information
TachunLin committed Oct 18, 2024
1 parent b3c4e97 commit 222222b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cypress/testcases/settings/settings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const settings = new SettingsPagePo();

describe('Setting Page', () => {
beforeEach(() => {
cy.login({url: PageUrl.setting});
settings.checkIsCurrentPage();
cy.login({ url: PageUrl.setting });
settings.checkIsCurrentPage();
})

/**
Expand All @@ -18,11 +18,11 @@ describe('Setting Page', () => {
*/
it('change UI source type to Bundled, Check whether the configuration takes effect', () => {
const address = `${Cypress.env('baseUrl')}/dashboard/js/**`;
settings.clickMenu('ui-source', 'Edit Setting', 'ui-source', undefined,'UI')
settings.clickMenu('ui-source', 'Edit Setting', 'ui-source', undefined, 'UI')
settings.checkUiSource('Bundled', address);
});


it('change UI source type to external, Check whether the configuration takes effect', () => {
const address = 'https://releases.rancher.com/harvester-ui/dashboard/**';
settings.clickMenu('ui-source', 'Edit Setting', 'ui-source', undefined, 'UI')
Expand Down Expand Up @@ -58,17 +58,17 @@ describe('Setting Page', () => {
*/
describe('Set backup target S3', () => {
beforeEach(() => {
cy.login({url: PageUrl.setting});
cy.login({ url: PageUrl.setting });
settings.checkIsCurrentPage(false);
})

it.only('Set backup target S3', () => {
settings.clickMenu('backup-target', 'Edit Setting', 'backup-target');

const backupTarget = Cypress.env('backupTarget');
const backupTarget = Cypress.env('S3backupTarget');
settings.setS3BackupTarget({
type: 'S3',
endpoint: backupTarget.endpoint,
type: 'S3',
endpoint: backupTarget.endpoint,
bucketName: backupTarget.bucketName,
bucketRegion: backupTarget.bucketRegion,
accessKeyId: backupTarget.accessKey,
Expand Down

0 comments on commit 222222b

Please sign in to comment.