Skip to content

Commit

Permalink
PMM-7 update links
Browse files Browse the repository at this point in the history
  • Loading branch information
yurkovychv committed Aug 22, 2023
1 parent 6df94c0 commit 3762651
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 55 deletions.
43 changes: 0 additions & 43 deletions tests/configuration/verifyPMMSettingsPageFunctionality_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,49 +124,6 @@ Scenario.skip(
},
);

Scenario(
'PMM-T782 PMM-T783 Verify DBaaS is disabled by default, Verify DBaaS can be enabled in PMM Settings @settings @settings-fb',
async ({ I, pmmSettingsPage, dbaasPage }) => {
I.amOnPage(pmmSettingsPage.advancedSettingsUrl);
await pmmSettingsPage.waitForPmmSettingsPageLoaded();

// Verify tooltip for Enable/Disable DBaaS toggle
await pmmSettingsPage.verifyTooltip(pmmSettingsPage.tooltips.advancedSettings.dbaas);

let selector = await I.grabAttributeFrom(pmmSettingsPage.fields.dbaasSwitchSelector, 'checked');

if (selector) {
assert.ok(selector === false, 'Dbaas Should be disabled by Default, toggle should be disabled');
}

I.dontSeeElement(pmmSettingsPage.fields.dbaasMenuIconLocator);
// FIXME: skip until https://jira.percona.com/browse/PMM-11221 is fixed
// I.amOnPage(dbaasPage.url);
// I.waitForElement(dbaasPage.disabledDbaaSMessage.settingsLinkLocator, 30);
// const message = (await I.grabTextFrom(dbaasPage.disabledDbaaSMessage.emptyBlock)).replace(/\s+/g, ' ');

// assert.ok(message === dbaasPage.disabledDbaaSMessage.textMessage,
// `Message Shown on ${message} should be equal to ${dbaasPage.disabledDbaaSMessage.textMessage}`);
// const link = await I.grabAttributeFrom(dbaasPage.disabledDbaaSMessage.settingsLinkLocator, 'href');

// assert.ok(link.includes('/graph/settings/advanced-settings'),
// `Advanced Setting Link displayed on DbaaS Page, when DbaaS is not enabled ${link}, please check the link`);
// Enable DbaaS via Advanced Settings, Make sure Menu is visible.
// await pmmSettingsPage.openAdvancedSettings();
I.waitForVisible(pmmSettingsPage.tooltips.advancedSettings.dbaas.iconLocator, 30);
I.click(pmmSettingsPage.fields.dbaasSwitchSelector);
I.click(pmmSettingsPage.fields.applyButton);
I.waitForElement(pmmSettingsPage.fields.dbaasMenuIconLocator, 30);
I.seeElement(pmmSettingsPage.fields.dbaasMenuIconLocator);
I.waitForElement(pmmSettingsPage.fields.dbaasSwitchSelector, 60);
selector = await I.grabAttributeFrom(pmmSettingsPage.fields.dbaasSwitchSelectorInput, 'checked');
assert.ok(selector === true, 'Dbaas Should be enabled, toggle should be checked now');
I.amOnPage(dbaasPage.url);
I.waitForElement(dbaasPage.tabs.kubernetesClusterTab.addKubernetesClusterButton, 50);
I.seeElement(dbaasPage.tabs.kubernetesClusterTab.addKubernetesClusterButton);
},
);

Scenario.skip(
'PMM-T254 PMM-T253 Verify disable telemetry while Advisers enabled @settings @stt @grafana-pr',
async ({ I, pmmSettingsPage }) => {
Expand Down
24 changes: 12 additions & 12 deletions tests/helper/linksHelper.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
module.exports = {
communicationDocs: 'https://www.percona.com/doc/percona-monitoring-and-management/2.x/how-to/configure.html#communication',
dbaasDocs: 'https://www.percona.com/doc/percona-monitoring-and-management/2.x/how-to/configure.html#dbaas',
integratedAlertingDocs: 'https://www.percona.com/doc/percona-monitoring-and-management/2.x/how-to/configure.html#alerting',
advisorsDocs: 'https://www.percona.com/doc/percona-monitoring-and-management/2.x/how-to/configure.html#advisors',
dbaasDocs: 'https://per.co.na/dbaas',
integratedAlertingDocs: 'https://per.co.na/alerting',
advisorsDocs: 'https://per.co.na/advisors',
termsOfService: 'https://per.co.na/pmm/platform-terms',
privacyPolicy: 'https://per.co.na/pmm/platform-privacy',
forgotPassword: 'https://okta.percona.com/signin/forgot-password',
imageRendererPlugin: 'https://docs.percona.com/percona-monitoring-and-management/how-to/share-dashboard.html#share-as-a-png-file',
imageRendererPlugin: 'https://per.co.na/share_png',
portalProfile: 'https://portal.percona.com/profile',
portalDevProfile: 'https://platform-dev.percona.com/profile',
metricsResolutionDocs: 'https://www.percona.com/doc/percona-monitoring-and-management/2.x/how-to/configure.html#server-admin-gui-metrics-resolution',
dataRetentionDocs: 'https://www.percona.com/doc/percona-monitoring-and-management/2.x/how-to/configure.html#data-retention',
telemetryDocs: 'https://www.percona.com/doc/percona-monitoring-and-management/2.x/how-to/configure.html#telemetry',
checkForUpdatesDocs: 'https://www.percona.com/doc/percona-monitoring-and-management/2.x/manage/server-admin-gui.html#check-for-updates',
backupManagementDocs: 'https://www.percona.com/doc/percona-monitoring-and-management/2.x/how-to/configure.html#backup-management',
microsoftAzureMonitoringDocs: 'https://www.percona.com/doc/percona-monitoring-and-management/2.x/how-to/configure.html#microsoft-azure-monitoring',
sshKeyDocs: 'https://www.percona.com/doc/percona-monitoring-and-management/2.x/how-to/configure.html#ssh-key-details',
prometheusAlertManagerDocs: 'https://www.percona.com/doc/percona-monitoring-and-management/2.x/how-to/configure.html#prometheus-alertmanager-integration',
metricsResolutionDocs: 'https://per.co.na/metrics_resolution',
dataRetentionDocs: 'https://per.co.na/data_retention',
telemetryDocs: 'https://per.co.na/telemetry',
checkForUpdatesDocs: 'https://per.co.na/updates',
backupManagementDocs: 'https://per.co.na/backup_management',
microsoftAzureMonitoringDocs: 'https://per.co.na/azure_monitoring',
sshKeyDocs: 'https://per.co.na/ssh_key',
prometheusAlertManagerDocs: 'https://per.co.na/alertmanager',
xtrabackup80Docs: 'https://www.percona.com/doc/percona-xtrabackup/8.0/installation.html',
};

0 comments on commit 3762651

Please sign in to comment.