From 364bfc4e709bd9dc51583f28d5ea4999716fafa6 Mon Sep 17 00:00:00 2001 From: Jacky Sun <67350368+JackySun9@users.noreply.github.com> Date: Fri, 5 Apr 2024 14:32:54 -0700 Subject: [PATCH] remove main cc hlx live links (#312) * add test for quiz and result pages * add test for quiz and result pages * add test for quiz and result pages * add POC for analytics test * update analytics tests and envs * result envs * update analytics only on firefox * add dynamic tests * add dynamic test for quiz page * update quiz test * update test structure * add test for quiz and result pages * add POC for analytics test * update analytics tests and envs * result envs * update analytics only on firefox * add dynamic tests * add dynamic test for quiz page * update quiz test * update test structure * update uar tests to new format * update uar tests * move everything to uar folder * add dependency for js-yaml * update test according to latest comments * update test according to latest comments * update tests according to the latest comments * add uar config * add analytics for uar * update according to feedbacks * update tags * add @cc tag * update according to feedbacks * add dynamic tests for uar * update according to review comments * fix some typos * update according to review comments * merge console log info * add UI screenshots for UAR * move view point to test * update according to feedback * add analytics test for UAR * update validation and uar libs * update libs * update by feedback * update some config and tests * update some config and tests * update test content path to common path * update analytics tests * fix test failures caused by test code * fix test failures * fix test failures * add visual test for CAAS with two pages * update according to feedbacks * update report in config file * add screenshot for milo main live vs uar-integration live * add timestamp js for time stampe recording * add screenshot diff for uar stable and beta * move uar screenshots into visual compare folder * add UI screenshots for DX Quiz * build a function to get screenshots * update locator * udate uar to only run basic tests * update according to feedback * add screenshot for UAR in CC which will go live * update final path for UAR in CC * update the final CC path * update cc uar screenshots to hlx.live vs stage * update test * update screenshot test * update uar analytics to run on STAGE * update tests to run on different envs after go live * Fix test failures for MWPW-143444 * update urls * MWPW-143444: setup automation for cc uar quiz * update for feedbacks * update for feedbacks * fix some validations * update uar automation for Stage testing * fix lint error * fix tests failures caused by timeout * make uar able to run on milo * limited dynamic test to 20 random * delete unuse tests to avoid noises * comment out soft compare to avoid failures * comment out soft compare to avoid failures * remove uar tests from cc folder * remove stage stuff * fix lint and test failures * remove unuse ulrs * get milo stage back for analytics * update id to be unique * update package.json * remove main cc hlx live links --------- Co-authored-by: xiasun Co-authored-by: Aaron Mauchley Co-authored-by: xiasun --- tests/uar/quiz.cc.analytics.test.js | 4 ++-- tests/uar/quiz.cc.screenshots.test.js | 4 ++-- tests/uar/quiz.cc.test.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/uar/quiz.cc.analytics.test.js b/tests/uar/quiz.cc.analytics.test.js index 78a99068..605cda5c 100644 --- a/tests/uar/quiz.cc.analytics.test.js +++ b/tests/uar/quiz.cc.analytics.test.js @@ -28,12 +28,12 @@ test.describe('Quiz flow test suite', () => { test( `${feature.name}, ${feature.tags}`, // eslint-disable-next-line no-loop-func - async () => { + async ({ baseURL }) => { // reset timeout because we use this to run all test data test.setTimeout(3 * 60 * 1000); const quiz = new Quiz(page); - const url = 'https://main--cc--adobecom.hlx.live/creativecloud/plan-recommender/quiz?milolibs=stage'; + const url = `${baseURL}${feature.path}`; console.info(url); // load test data from static files diff --git a/tests/uar/quiz.cc.screenshots.test.js b/tests/uar/quiz.cc.screenshots.test.js index 32f8651d..092c0adc 100644 --- a/tests/uar/quiz.cc.screenshots.test.js +++ b/tests/uar/quiz.cc.screenshots.test.js @@ -13,10 +13,10 @@ test.describe('Quiz flow test suite', () => { for (const feature of features) { test( `${feature.name}, ${feature.tags}`, - async ({ page }) => { + async ({ page, baseURL }) => { const stablePage = new Quiz(page); const betaPage = new Quiz(page); - const stableURL = 'https://main--cc--adobecom.hlx.live/creativecloud/plan-recommender/quiz'; + const stableURL = `${baseURL}${feature.path}`; console.info(stableURL); const betaURL = `${stableURL}?milolibs=stage`; console.info(betaURL); diff --git a/tests/uar/quiz.cc.test.js b/tests/uar/quiz.cc.test.js index 4ffb499b..dddaa43c 100644 --- a/tests/uar/quiz.cc.test.js +++ b/tests/uar/quiz.cc.test.js @@ -15,10 +15,10 @@ test.describe('Quiz flow test suite', () => { for (const feature of features) { test( `${feature.name}, ${feature.tags}`, - async ({ page }) => { + async ({ page, baseURL }) => { const quiz = new Quiz(page); const quizOldPage = new Quiz(page); - const url = 'https://main--cc--adobecom.hlx.live/creativecloud/plan-recommender/quiz'; + const url = `${baseURL}${feature.path}`; console.info(url); // load test data from static files