From 95f238684dac8ef646015be9a9fda7491ade1e5e Mon Sep 17 00:00:00 2001 From: Peter Fitzgibbons Date: Fri, 24 Mar 2023 16:11:45 -0700 Subject: [PATCH] Selenium Test Suite - PageObject.browser * Change default insertTimestamp to FALSE (removes `_t` query param everywhere) Signed-off-by: Peter Fitzgibbons --- test/functional/apps/dashboard/dashboard_clone.js | 2 +- test/functional/services/common/browser.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/apps/dashboard/dashboard_clone.js b/test/functional/apps/dashboard/dashboard_clone.js index 6fbe8e90b04b..90138a8ccf3f 100644 --- a/test/functional/apps/dashboard/dashboard_clone.js +++ b/test/functional/apps/dashboard/dashboard_clone.js @@ -40,7 +40,7 @@ export default function ({ getService, getPageObjects }) { const clonedDashboardName = dashboardName + ' Copy'; before(async function () { - return PageObjects.dashboard.initTests(); + await PageObjects.dashboard.initTests(); }); it('Clone saves a copy', async function () { diff --git a/test/functional/services/common/browser.ts b/test/functional/services/common/browser.ts index 6a49ae0a67ad..9b40ddd488eb 100644 --- a/test/functional/services/common/browser.ts +++ b/test/functional/services/common/browser.ts @@ -196,7 +196,7 @@ export async function BrowserProvider({ getService }: FtrProviderContext) { * @param {boolean} insertTimestamp Optional * @return {Promise} */ - public async get(url: string, insertTimestamp: boolean = true) { + public async get(url: string, insertTimestamp: boolean = false) { if (insertTimestamp) { const urlWithTime = modifyUrl(url, (parsed) => { (parsed.query as any)._t = Date.now();