Skip to content

Commit

Permalink
Merge pull request #12606 from torchiaf/fix/telemetry-opt-e2e
Browse files Browse the repository at this point in the history
Fix telemetry-opt e2e test
  • Loading branch information
torchiaf authored Nov 14, 2024
2 parents 24249f9 + debfbf9 commit 88fbd46
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cypress/e2e/tests/pages/global-settings/settings-p2.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,17 @@ describe('Settings', { testIsolation: 'off' }, () => {
it('can update telemetry-opt', { tags: ['@globalSettings', '@adminUser'] }, () => {
// Update setting: Prompt
SettingsPagePo.navTo();

settingsPage.waitForPage();
settingsPage.settingsValue('telemetry-opt').contains('Opt-out of Telemetry');

settingsPage.editSettingsByLabel('telemetry-opt');

const settingsEdit = settingsPage.editSettings('local', 'telemetry-opt');

settingsEdit.waitForPage();
settingsEdit.title().contains('Setting: telemetry-opt').should('be.visible');
settingsEdit.useDefaultButton().should('be.disabled'); // button should be disabled for this settings option
settingsEdit.useDefaultButton().should('not.be.disabled');
settingsEdit.selectSettingsByLabel('Prompt');
settingsEdit.saveAndWait('telemetry-opt', 'prompt').then(({ request, response }) => {
expect(response?.statusCode).to.eq(200);
Expand Down

0 comments on commit 88fbd46

Please sign in to comment.