Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMM-7 fix settings tests #852

Merged
merged 4 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/configuration/verifyPMMSettingsPageElements_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ Scenario('@PMM-T1866 - Verify if public address has an port assigned and followi
I.fillField(pmmSettingsPage.fields.publicAddressInput, '192.168.1.1:8433');
pmmSettingsPage.applyChanges();
I.dontSeeElement(pmmSettingsPage.fields.errorPopUpElement);

// Remove wait after https://perconadev.atlassian.net/browse/PMM-13340 is fixed
I.wait(5);
I.refreshPage();
await pmmSettingsPage.verifySettingsValue(pmmSettingsPage.fields.publicAddressInput, '192.168.1.1:8433');
// clearField and customClearField methods doesn't work for this field
I.usePlaywrightTo('clear field', async ({ page }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,8 @@ Scenario(

I.assertTrue(publicAddressValue.length > 0, 'Expected the Public Address Input Field to be not empty!');
pmmSettingsPage.applyChanges();
// Remove wait after https://perconadev.atlassian.net/browse/PMM-13340 is fixed
I.wait(5);
I.refreshPage();
await pmmSettingsPage.waitForPmmSettingsPageLoaded();
const publicAddressAfterRefresh = await I.grabValueFrom(pmmSettingsPage.fields.publicAddressInput);
Expand Down
4 changes: 3 additions & 1 deletion tests/serverLogs_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ const filename = 'logs.zip';
const fileNameToCheck = 'pmm-managed.log';
const baseUrl = codeceptjsConfig.config.helpers.Playwright.url;

BeforeSuite(async ({ locationsAPI }) => {
BeforeSuite(async ({ I, locationsAPI }) => {
// Simple request to generate > 50k lines in logs
for (let i = 0; i < 13000; i++) {
await locationsAPI.getLocationsList();
}

I.wait(15);
});

// @settings-fb tag added in order to execute these tests on FB
Expand Down
Loading