Skip to content

Commit

Permalink
[QA] Changes the telemetry banner dismiss location (#102721)
Browse files Browse the repository at this point in the history
* change telemetry banner dismiss location

* use dismissBanner method instead

* Update _metricbeat_dashboard.js

* Update _maps.ts

* Update _maps.ts

* Update _metricbeat_dashboard.js
  • Loading branch information
marius-dr authored Jun 21, 2021
1 parent f53fc8d commit 3662cf4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 2 additions & 3 deletions x-pack/test/stack_functional_integration/apps/maps/_maps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ export default function ({
}: FtrProviderContext & { updateBaselines: boolean }) {
const screenshot = getService('screenshots');
const browser = getService('browser');
const find = getService('find');
const PageObjects = getPageObjects(['maps']);
const PageObjects = getPageObjects(['common', 'maps']);

describe('check Elastic Maps Server', function () {
before(async function () {
await PageObjects.maps.loadSavedMap('EMS Test');
await find.clickByButtonText('Dismiss');
await PageObjects.common.dismissBanner();
await browser.setScreenshotSize(1000, 1000);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const ARCHIVE = resolve(INTEGRATION_TEST_ROOT, 'test/es_archives/metricbeat');
export default function ({ getService, getPageObjects, updateBaselines }) {
const screenshot = getService('screenshots');
const browser = getService('browser');
const find = getService('find');
const log = getService('log');
const esArchiver = getService('esArchiver');
const PageObjects = getPageObjects(['common', 'dashboard', 'timePicker']);
Expand Down Expand Up @@ -47,7 +46,7 @@ export default function ({ getService, getPageObjects, updateBaselines }) {
// await PageObjects.dashboard.clickFullScreenMode();

await PageObjects.common.sleep(2000);
await find.clickByButtonText('Dismiss');
await PageObjects.common.dismissBanner();
await PageObjects.dashboard.waitForRenderComplete();
await PageObjects.common.sleep(2000);
await browser.setScreenshotSize(1000, 1337);
Expand All @@ -64,7 +63,7 @@ export default function ({ getService, getPageObjects, updateBaselines }) {
'metricbeat_dashboard',
updateBaselines
);
expect(percentDifference).to.be.lessThan(0.01);
expect(percentDifference).to.be.lessThan(0.017);
} finally {
log.debug('### Screenshot taken');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export default ({ getService, getPageObjects }) => {
await browser.setWindowSize(1200, 800);
await PageObjects.common.navigateToApp('home');
});
after(async function () {
await PageObjects.common.dismissBanner();
});

it('should show banner Help us improve the Elastic Stack', async () => {
const actualMessage = await PageObjects.common.getWelcomeText();
Expand Down

0 comments on commit 3662cf4

Please sign in to comment.