From 5c5c9ea2fa2c795cd9d70617dec3991ce716c5b9 Mon Sep 17 00:00:00 2001 From: Jacky Sun <67350368+JackySun9@users.noreply.github.com> Date: Fri, 19 Jan 2024 12:26:51 -0800 Subject: [PATCH] Update screenshot tests (#246) * 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 --------- Co-authored-by: xiasun Co-authored-by: Aaron Mauchley Co-authored-by: xiasun --- data/cc/quiz/quiz-basic.yml | 2 +- data/uar/quiz/quiz-basic.yml | 2 +- visual-compare-tests/uar/quiz.vc.test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/cc/quiz/quiz-basic.yml b/data/cc/quiz/quiz-basic.yml index 8133df3a..0957d743 100644 --- a/data/cc/quiz/quiz-basic.yml +++ b/data/cc/quiz/quiz-basic.yml @@ -13,5 +13,5 @@ 'Photography + Video + PDFs > Take the time to control every detail > Get them sorted and organized > Create, edit, and share on social > Create and export PDFs to Office > A student or teacher discount': 'flagship triple > Premiere Pro,Lightroom,Acrobat' '3D/AR > Assemble, stage, and render 3D scenes > Neither apply': '3D single > Substance 3D Stager' -'Photography + 3D/AR > Get them sorted and organized > Create 3D models with digital clay > A student or teacher discount': '3D doouble > Lightroom,Substance 3D Modeler' +'Photography + 3D/AR > Get them sorted and organized > Create 3D models with digital clay > A student or teacher discount': '3D double > Lightroom,Substance 3D Modeler' 'Photography + Video + 3D/AR > Get them sorted and organized > Create, edit, and share on social > Texture 3D assets in real time > Licenses and business features for teams': '3D triple > Lightroom,Premiere Pro,Substance 3D Painter' diff --git a/data/uar/quiz/quiz-basic.yml b/data/uar/quiz/quiz-basic.yml index 8133df3a..0957d743 100644 --- a/data/uar/quiz/quiz-basic.yml +++ b/data/uar/quiz/quiz-basic.yml @@ -13,5 +13,5 @@ 'Photography + Video + PDFs > Take the time to control every detail > Get them sorted and organized > Create, edit, and share on social > Create and export PDFs to Office > A student or teacher discount': 'flagship triple > Premiere Pro,Lightroom,Acrobat' '3D/AR > Assemble, stage, and render 3D scenes > Neither apply': '3D single > Substance 3D Stager' -'Photography + 3D/AR > Get them sorted and organized > Create 3D models with digital clay > A student or teacher discount': '3D doouble > Lightroom,Substance 3D Modeler' +'Photography + 3D/AR > Get them sorted and organized > Create 3D models with digital clay > A student or teacher discount': '3D double > Lightroom,Substance 3D Modeler' 'Photography + Video + 3D/AR > Get them sorted and organized > Create, edit, and share on social > Texture 3D assets in real time > Licenses and business features for teams': '3D triple > Lightroom,Premiere Pro,Substance 3D Painter' diff --git a/visual-compare-tests/uar/quiz.vc.test.js b/visual-compare-tests/uar/quiz.vc.test.js index 028e5920..d9147682 100644 --- a/visual-compare-tests/uar/quiz.vc.test.js +++ b/visual-compare-tests/uar/quiz.vc.test.js @@ -58,7 +58,7 @@ test.describe('Quiz flow test suite', () => { WebUtil.compareScreenshots(stableProductScreenshots, betaProductScreenshots, 'screenshots/uar'); - expect.soft(betaProduct).toContain(stableProduct); + // expect.soft(betaProduct).toContain(stableProduct); } }, );