Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add screenshots for UAR in CC #238

Merged
merged 153 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
17a42c8
add test for quiz and result pages
Feb 28, 2023
5b40dd7
add test for quiz and result pages
Feb 28, 2023
7f53c91
Merge branch 'main' of https://github.com/JackySun9/nala
Feb 28, 2023
91dea1c
Merge branch 'main' into main
amauch-adobe Mar 2, 2023
6cabde1
Merge branch 'main' into main
amauch-adobe Mar 2, 2023
e93dc78
Merge branch 'main' into main
amauch-adobe Mar 2, 2023
92c4926
Merge branch 'main' into main
amauch-adobe Mar 3, 2023
40e1c70
add test for quiz and result pages
Feb 28, 2023
fef7e83
Merge branch 'main' of https://github.com/JackySun9/nala
Mar 8, 2023
6a597e1
add POC for analytics test
Mar 8, 2023
83436c5
update analytics tests and envs
Mar 8, 2023
6dcc5bf
result envs
Mar 8, 2023
90ce636
update analytics only on firefox
Mar 8, 2023
d178ea2
Merge branch 'main' into main
amauch-adobe Mar 9, 2023
7709d2f
Merge branch 'main' into main
amauch-adobe Mar 9, 2023
146cb59
add dynamic tests
Mar 10, 2023
7c8125b
Merge branch 'main' into main
amauch-adobe Mar 11, 2023
73917e0
Merge branch 'main' into main
amauch-adobe Mar 13, 2023
676a6ed
add dynamic test for quiz page
Mar 15, 2023
fb62f2f
Merge branch 'main' into main
amauch-adobe Mar 16, 2023
a5a1386
update quiz test
Mar 16, 2023
17d8de5
Merge branch 'main' into main
amauch-adobe Mar 17, 2023
613a53e
Merge branch 'main' into main
amauch-adobe Mar 18, 2023
d9dc819
Merge branch 'main' into main
amauch-adobe Mar 21, 2023
c4f46fd
Merge branch 'main' into main
amauch-adobe Mar 23, 2023
3b6beb9
Merge branch 'main' into main
amauch-adobe Mar 27, 2023
de7b82c
update test structure
Mar 28, 2023
e33d1ff
Merge branch 'main' into main
amauch-adobe Mar 28, 2023
8228063
Merge branch 'main' into main
amauch-adobe Mar 29, 2023
34eef21
Merge branch 'main' into main
amauch-adobe Mar 30, 2023
30ca087
Merge branch 'main' into main
amauch-adobe Mar 31, 2023
2b03073
add test for quiz and result pages
Feb 28, 2023
69920e1
add POC for analytics test
Mar 8, 2023
55c26ad
update analytics tests and envs
Mar 8, 2023
3cdea6b
result envs
Mar 8, 2023
a08b7a9
update analytics only on firefox
Mar 8, 2023
5331c21
add dynamic tests
Mar 10, 2023
b307fb8
add dynamic test for quiz page
Mar 15, 2023
d24b73c
update quiz test
Mar 16, 2023
a7c16e4
update test structure
Mar 28, 2023
66c8b8a
Merge branch 'main' into main
amauch-adobe Apr 5, 2023
6e3d478
Merge branch 'main' of https://github.com/JackySun9/nala
Apr 11, 2023
1aa28f5
Merge branch 'main' into main
amauch-adobe Apr 14, 2023
7774a7a
Merge branch 'main' into main
amauch-adobe Apr 14, 2023
2fc1afb
Merge branch 'main' into main
amauch-adobe Apr 19, 2023
dba7ad4
Merge branch 'main' into main
amauch-adobe Apr 20, 2023
7c95cb7
Merge branch 'main' into main
amauch-adobe Apr 20, 2023
a9bec94
Merge branch 'main' into main
amauch-adobe Apr 27, 2023
6e29a57
update uar tests to new format
Apr 27, 2023
0116d2b
update uar tests
May 2, 2023
946f847
move everything to uar folder
May 3, 2023
f956af9
add dependency for js-yaml
May 3, 2023
c5fdcd8
Merge branch 'main' into main
amauch-adobe May 3, 2023
d62be56
update test according to latest comments
May 4, 2023
61bbdd4
update test according to latest comments
May 4, 2023
3a61ca1
update tests according to the latest comments
May 4, 2023
2097114
add uar config
May 4, 2023
8182e27
Merge branch 'main' of https://github.com/adobecom/nala
May 4, 2023
ad823a5
Merge branch 'main' of https://github.com/adobecom/nala
May 18, 2023
d82c29e
add analytics for uar
May 19, 2023
adf86bc
update according to feedbacks
May 23, 2023
3b7e9e2
update tags
May 23, 2023
8940824
Merge branch 'main' of https://github.com/adobecom/nala
May 24, 2023
272d40d
add @cc tag
May 24, 2023
bf8c2ce
Merge branch 'main' into main
amauch-adobe May 24, 2023
41de325
update according to feedbacks
May 24, 2023
712f253
Merge branch 'main' of https://github.com/adobecom/nala
May 30, 2023
4ed314b
Merge branch 'main' of https://github.com/adobecom/nala
Jun 22, 2023
aae34dc
Merge branch 'main' of https://github.com/adobecom/nala
Jun 22, 2023
7dc3057
Merge branch 'main' of https://github.com/adobecom/nala
Jun 29, 2023
2ba824d
Merge branch 'main' of https://github.com/adobecom/nala
Jul 11, 2023
1214fb8
Merge branch 'main' of https://github.com/adobecom/nala
Jul 14, 2023
ecdfc09
Merge branch 'main' of https://github.com/adobecom/nala
Jul 20, 2023
cf44cd7
Merge branch 'main' of https://github.com/adobecom/nala
Jul 24, 2023
738af46
Merge branch 'main' of https://github.com/adobecom/nala
Jul 27, 2023
928b0f9
Merge branch 'main' of https://github.com/adobecom/nala
Aug 10, 2023
13d2e82
Merge branch 'main' of https://github.com/adobecom/nala
Aug 24, 2023
4908907
add dynamic tests for uar
Aug 24, 2023
9cf4fd0
Merge branch 'main' of https://github.com/adobecom/nala
Aug 25, 2023
ebd9477
update according to review comments
Aug 28, 2023
06f9e7f
fix some typos
Aug 28, 2023
e6d94b4
update according to review comments
Aug 29, 2023
adfd8a2
merge console log info
Aug 30, 2023
401d633
Merge branch 'main' of https://github.com/adobecom/nala
Sep 5, 2023
9237eb5
Merge branch 'main' of https://github.com/adobecom/nala
Sep 6, 2023
1504a0f
add UI screenshots for UAR
Sep 7, 2023
b59bc3b
Merge branch 'main' into main
amauch-adobe Sep 8, 2023
dd23724
Merge branch 'main' of https://github.com/adobecom/nala
Sep 9, 2023
66ba8f4
Merge branch 'main' of https://github.com/JackySun9/nala
Sep 9, 2023
1865482
move view point to test
Sep 11, 2023
19944cc
Merge branch 'main' of https://github.com/adobecom/nala
Sep 12, 2023
118fd10
update according to feedback
Sep 14, 2023
5e35140
Merge branch 'main' of https://github.com/adobecom/nala
Sep 14, 2023
8b860ff
add analytics test for UAR
Sep 14, 2023
444ff8c
update validation and uar libs
Sep 18, 2023
997875b
Merge branch 'main' of https://github.com/adobecom/nala
Sep 18, 2023
e5f69d8
Merge branch 'main' into main
amauch-adobe Sep 18, 2023
4a94eef
update libs
Sep 18, 2023
2a49cf1
Merge branch 'main' of https://github.com/adobecom/nala
Sep 18, 2023
91f50c8
Merge branch 'main' of https://github.com/JackySun9/nala
Sep 18, 2023
bbc4af8
update by feedback
Sep 18, 2023
e77c6db
Merge branch 'main' of https://github.com/adobecom/nala
Sep 18, 2023
969ea34
Merge branch 'main' of https://github.com/adobecom/nala
Sep 19, 2023
008a461
Merge branch 'main' of https://github.com/adobecom/nala
Sep 21, 2023
d473370
Merge branch 'main' of https://github.com/adobecom/nala
Sep 25, 2023
ddd0777
Merge branch 'main' of https://github.com/adobecom/nala
Oct 2, 2023
e72fa1b
update some config and tests
Oct 6, 2023
18982b0
update some config and tests
Oct 6, 2023
d7bf5ce
Merge branch 'main' of https://github.com/adobecom/nala
Oct 6, 2023
0653183
Merge branch 'main' of https://github.com/adobecom/nala
Oct 10, 2023
702884a
update test content path to common path
Oct 16, 2023
904a1b3
Merge branch 'main' of https://github.com/adobecom/nala
Oct 17, 2023
211288b
update analytics tests
Oct 17, 2023
2a7f2ab
Merge branch 'main' of https://github.com/adobecom/nala
Oct 20, 2023
7c5bccf
fix test failures caused by test code
Oct 20, 2023
9014f0d
Merge branch 'main' of https://github.com/adobecom/nala
Oct 21, 2023
b440f0e
Merge branch 'main' of https://github.com/adobecom/nala
Oct 24, 2023
4dbf289
fix test failures
Oct 25, 2023
f21e95b
Merge branch 'main' of https://github.com/adobecom/nala
Oct 26, 2023
451b980
Merge branch 'main' of https://github.com/adobecom/nala
Oct 26, 2023
82887d0
fix test failures
Oct 27, 2023
d6d26ac
Merge branch 'main' of https://github.com/adobecom/nala
Oct 30, 2023
8e2365b
Merge branch 'main' of https://github.com/adobecom/nala
Oct 31, 2023
856b7e1
Merge branch 'main' of https://github.com/adobecom/nala
Nov 1, 2023
b5bacdc
Merge branch 'main' of https://github.com/adobecom/nala
Nov 17, 2023
64c54b3
Merge branch 'main' of https://github.com/adobecom/nala
Nov 21, 2023
d1b3306
add visual test for CAAS with two pages
Nov 21, 2023
a822037
update according to feedbacks
Nov 22, 2023
599a21b
Merge branch 'main' of https://github.com/adobecom/nala
Nov 28, 2023
5589956
update report in config file
Nov 28, 2023
150dbdb
Merge branch 'main' of https://github.com/adobecom/nala
Nov 28, 2023
2273886
add screenshot for milo main live vs uar-integration live
Nov 29, 2023
fd72ff3
add timestamp js for time stampe recording
Nov 29, 2023
c023833
add screenshot diff for uar stable and beta
Nov 29, 2023
fcbcac0
move uar screenshots into visual compare folder
Nov 30, 2023
67af515
Merge branch 'main' of https://github.com/adobecom/nala
Dec 1, 2023
970a58d
Merge branch 'main' of https://github.com/adobecom/nala
Dec 5, 2023
04cc209
Merge branch 'main' of https://github.com/adobecom/nala
Dec 7, 2023
0eb13c5
Merge branch 'main' of https://github.com/adobecom/nala
Dec 7, 2023
6c9b745
add UI screenshots for DX Quiz
Dec 7, 2023
63c67ea
build a function to get screenshots
Dec 7, 2023
96edb6f
Merge branch 'main' of https://github.com/adobecom/nala
Dec 7, 2023
6f57018
Merge branch 'main' of https://github.com/adobecom/nala
Dec 8, 2023
e2a1cda
update locator
Dec 8, 2023
84bf374
Merge branch 'main' of https://github.com/adobecom/nala
Dec 8, 2023
ac584c8
Merge branch 'main' of https://github.com/adobecom/nala
Dec 11, 2023
259245e
Merge branch 'main' of https://github.com/adobecom/nala
Dec 12, 2023
bd53b15
udate uar to only run basic tests
Dec 13, 2023
68fd5b5
update according to feedback
Dec 13, 2023
bd54bdb
Merge branch 'main' of https://github.com/adobecom/nala
Jan 3, 2024
5a22211
Merge branch 'main' of https://github.com/adobecom/nala
Jan 3, 2024
c7936da
Merge branch 'main' of https://github.com/adobecom/nala
Jan 9, 2024
2d93480
add screenshot for UAR in CC which will go live
Jan 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions data/cc/quiz/quiz-basic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
'Photography > Edit quickly and customize templates > A student or teacher discount': 'template single > Adobe Express'
'PDFs > Edit quickly and customize templates > Licenses and business features for teams': 'template single with PDF > Acrobat Pro'
'Video + Graphic design > Edit quickly and customize templates > Neither apply': 'template double > Adobe Express'
'Illustration + PDFs > Edit quickly and customize templates > Neither apply': 'template double with PDF > Acrobat Pro'
'Photography + Video + Graphic design > Edit quickly and customize templates > A student or teacher discount': 'template triple > Adobe Express'
'Photography + Illustration + PDFs > Edit quickly and customize templates > Neither apply': 'template triple with PDF > Acrobat Pro'

'Photography > Take the time to control every detail > Get them sorted and organized > A student or teacher discount': 'flagship single > Lightroom'
'Video > Take the time to control every detail > Create, edit, and share on social > Licenses and business features for teams': 'flagship single > Premiere Pro'
'Photography + Illustration > Take the time to control every detail > Correct color and lighting like a pro > Paint, draw, or doodle like on paper > A student or teacher discount': 'flagship double > Lightroom,Photoshop'
'Graphic design + Illustration > Take the time to control every detail > Create layouts for magazines, books, or posters > Draw crisp lines and smooth curves > Licenses and business features for teams': 'flagship double > InDesign,Illustrator'
'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 + 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'
12 changes: 12 additions & 0 deletions features/cc/quiz.screenshots.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
name: 'Quiz Recommender Blocks',
features: [
{
tcid: '0',
name: '@quiz screenshots',
path: '/cc-shared/uar/plan-recommender/',
tags: '@cc @uar-quiz-screenshots @uar-quiz-static',
data: 'data/cc/quiz/quiz-basic.yml',
},
],
};
65 changes: 65 additions & 0 deletions tests/cc/quiz.screenshots.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/* eslint-disable no-await-in-loop */
/* eslint-disable no-loop-func */
/* eslint-disable no-restricted-syntax */
import { expect, test } from '@playwright/test';
import Quiz from '../../selectors/uar/quiz.page.js';
import QuizOldPage from '../../selectors/uar/quiz.old.page.js';

const QuizSpec = require('../../features/cc/quiz.screenshots.spec.js');

const { features } = QuizSpec;
const { WebUtil } = require('../../libs/webutil.js');

test.describe('Quiz flow test suite', () => {
// reset timeout because we use this to run all test data
test.setTimeout(10 * 60 * 1000);
for (const feature of features) {
test(
`${feature.name}, ${feature.tags}`,
async ({ page, baseURL }) => {
const quiz = new Quiz(page);
const quizOldPage = new QuizOldPage(page);
const url = `${baseURL}${feature.path}`;
console.info(url);

// load test data from static files
const testdata = await WebUtil.loadTestData(`${feature.data}`);

let keyNumber = 0;

for (let key of Object.keys(testdata)) {
console.log(key);
let oldProduct = '';
let newProduct = '';
keyNumber += 1;
await test.step(`Old: Select each answer on test page according to ${key}`, async () => {
await quizOldPage.clickEachAnswer('https://www.adobe.com/creativecloud/quiz-recommender.html', key, keyNumber, true);
});

await test.step('Old: Check results on test page', async () => {
oldProduct = await quizOldPage.checkResultPage(testdata[key], key, keyNumber, true);
});

if (key.includes('PDFs > Edit quickly')) {
// eslint-disable-next-line no-continue
continue;
}

if (key.includes('PDFs > Take the time to control')) {
key = key.replace('PDFs > Take the time to control every detail', 'PDFs');
}

await test.step(`New: Select each answer on test page according to ${key}`, async () => {
await quiz.clickEachAnswer(url, key, keyNumber, 'new', true);
});

await test.step('New: Check results on test page', async () => {
newProduct = await quiz.checkResultPage(testdata[key], key, keyNumber, 'new', true);
});

// expect.soft(newProduct).toContain(oldProduct);
}
},
);
}
});