Skip to content

Commit

Permalink
update id to be unique (#311)
Browse files Browse the repository at this point in the history
* 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

---------

Co-authored-by: xiasun <[email protected]>
Co-authored-by: Aaron Mauchley <[email protected]>
Co-authored-by: xiasun <[email protected]>
  • Loading branch information
4 people authored Apr 5, 2024
1 parent b120e6e commit b56b49a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 67 deletions.
2 changes: 1 addition & 1 deletion features/uar/quiz.analytics.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
tcid: '0',
name: '@quiz analytics',
path: '/drafts/quiz/quiz-2/',
tags: '@cc @uar-quiz-analytics @uar-quiz-static',
tags: '@cc @uar-quiz-analytics-milo @uar-quiz-static',
data: 'data/uar/quiz/quiz-basic.yml',
},
],
Expand Down
2 changes: 1 addition & 1 deletion features/uar/quiz.screenshots.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
tcid: '0',
name: '@quiz screenshots',
path: '/drafts/quiz/quiz-2/',
tags: '@cc @uar-quiz-screenshots @uar-quiz-static',
tags: '@cc @uar-quiz-screenshots-milo @uar-quiz-static',
data: 'data/uar/quiz/quiz-basic.yml',
},
],
Expand Down
67 changes: 2 additions & 65 deletions features/uar/quiz.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,74 +2,11 @@ module.exports = {
name: 'Quiz Recommender Blocks',
features: [
{
tcid: '000',
tcid: '0',
name: '@quiz basic',
path: '/drafts/quiz/quiz-2/',
tags: '@cc @uar-quiz-basic @uar-quiz-static',
tags: '@cc @uar-quiz-basic-milo @uar-quiz-static',
data: 'data/uar/quiz/quiz-basic.yml',
},
{
tcid: '0',
name: '@quiz single template',
path: '/drafts/quiz/quiz-2/',
tags: '@cc @uar-quiz-single-template @uar-quiz-static',
data: 'data/uar/quiz/quiz-single-template.yml',
},
{
tcid: '1',
name: '@quiz double template',
path: '/drafts/quiz/quiz-2/',
tags: '@cc @uar-quiz-double-template @uar-quiz-static',
data: 'data/uar/quiz/quiz-double-template.yml',
},
{
tcid: '2',
name: '@quiz triple template',
path: '/drafts/quiz/quiz-2/',
tags: '@cc @uar-quiz-triple-template @uar-quiz-static',
data: 'data/uar/quiz/quiz-triple-template.yml',
},
{
tcid: '3',
name: '@quiz single flagship photo',
path: '/drafts/quiz/quiz-2/',
tags: '@cc @uar-quiz-single-flagship-photo @uar-quiz-static',
data: 'data/uar/quiz/quiz-single-flagship-photo.yml',
},
{
tcid: '4',
name: '@quiz single flagship video',
path: '/drafts/quiz/quiz-2/',
tags: '@cc @uar-quiz-single-flagship-video @uar-quiz-static',
data: 'data/uar/quiz/quiz-single-flagship-video.yml',
},
{
tcid: '5',
name: '@quiz double flagship design illustration',
path: '/drafts/quiz/quiz-2/',
tags: '@cc @uar-quiz-double-flagship-design-illustration @uar-quiz-static',
data: 'data/uar/quiz/quiz-double-flagship-design-illustration.yml',
},
{
tcid: '6',
name: '@quiz double flagship photo illustration',
path: '/drafts/quiz/quiz-2/',
tags: '@cc @uar-quiz-double-flagship-photo-illustration @uar-quiz-static',
data: 'data/uar/quiz/quiz-double-flagship-photo-illustration.yml',
},
{
tcid: '7',
name: '@quiz triple flagship photo video pdf',
path: '/drafts/quiz/quiz-2/',
tags: '@cc @uar-quiz-triple-flagship-photo-video-pdf @uar-quiz-static',
data: 'data/uar/quiz/quiz-triple-flagship-photo-video-pdf.yml',
},
{
tcid: '8',
name: '@quiz single 3D',
path: '/drafts/quiz/quiz-2/',
tags: '@cc @uar-quiz-single-3D @uar-quiz-static',
data: 'data/uar/quiz/quiz-single-3D.yml',
},
],
};

0 comments on commit b56b49a

Please sign in to comment.