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

[wip][poc] Add Pigment CSS screenshot test #43280

Merged
merged 33 commits into from
Sep 6, 2024
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
84ad37e
init
mnajdova Aug 13, 2024
6402f6c
add run command
mnajdova Aug 13, 2024
b003e48
change run command
mnajdova Aug 13, 2024
271be6c
revert run cmd change
mnajdova Aug 13, 2024
55c3227
add build step before
mnajdova Aug 13, 2024
9878e5e
use common js mocharc file
mnajdova Aug 13, 2024
d4f9624
update command
mnajdova Aug 13, 2024
3766fa1
define __dirname
mnajdova Aug 14, 2024
4387379
fix
mnajdova Aug 14, 2024
a4bce28
break into two runs
mnajdova Aug 14, 2024
73bdebb
add polyfils
mnajdova Aug 14, 2024
3edabb7
pnpm dedupe
mnajdova Aug 14, 2024
e414dd8
some fixes & logs
mnajdova Aug 14, 2024
2a2901e
prettier
mnajdova Aug 14, 2024
35c41d6
fix filter
mnajdova Aug 14, 2024
a3d6e3e
omit the index.test path from the links
mnajdova Aug 14, 2024
4de9c06
fix selector
mnajdova Aug 14, 2024
927db19
lint issues
mnajdova Aug 14, 2024
fc5d041
revert changes in regressions
mnajdova Aug 15, 2024
174a500
fixes
mnajdova Aug 15, 2024
50c5922
fix path
mnajdova Aug 15, 2024
0200896
remove console.logs
mnajdova Aug 15, 2024
ab06674
improve index
mnajdova Aug 15, 2024
a117799
remove unused props
mnajdova Aug 15, 2024
86c3a41
Merge branch 'master' into pigment-css/regression-tests
mnajdova Sep 4, 2024
9ccaed6
pnpm i & dedupe
mnajdova Sep 4, 2024
370f21f
add demos
mnajdova Sep 4, 2024
5278807
filter broken page
mnajdova Sep 4, 2024
e6e90e3
add select screenshots
mnajdova Sep 5, 2024
75b91bc
Add instructions on how to run the suite
mnajdova Sep 5, 2024
462f2fc
pnpm dedupe
mnajdova Sep 5, 2024
d45061e
Merge branch 'master' into pigment-css/regression-tests
mnajdova Sep 6, 2024
8702cf0
pnpm-lock & dependency version update
mnajdova Sep 6, 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
Prev Previous commit
Next Next commit
fix path
mnajdova committed Aug 15, 2024
commit 50c5922495e686944d21454456bbca92443fe64e
2 changes: 1 addition & 1 deletion apps/pigment-css-vite-app/src/pages/fixtures/index.test.js
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ import * as playwright from 'playwright';
async function main() {
const baseUrl = 'http://localhost:5001/fixtures';
const screenshotDir = path.resolve('screenshots/chrome');

console.log('screenshotDir', screenshotDir);
const browser = await playwright.chromium.launch({
args: ['--font-render-hinting=none'],
// otherwise the loaded google Roboto font isn't applied
3 changes: 2 additions & 1 deletion scripts/pushArgos.mjs
Original file line number Diff line number Diff line change
@@ -5,13 +5,14 @@ import lodashChunk from 'lodash/chunk.js';
import { upload } from '@argos-ci/core';

const screenshotsBase = 'test/regressions/screenshots/chrome';
const screenshotsPigmentCSSBase = 'apps/pigment-css-vite-app/pages/fixtures/screenshots/chrome';
const screenshotsPigmentCSSBase = 'screenshots/chrome';
const screenshotsTmp = 'test/regressions/screenshots/argos';
const BATCH_SIZE = 200;

async function run() {
const emotionScreenshots = await glob(`${screenshotsBase}/**/*`);
const pigmentCSSScnreeshots = await glob(`${screenshotsPigmentCSSBase}/**/*`);
console.log(pigmentCSSScnreeshots.length);
const screenshots = [...emotionScreenshots, ...pigmentCSSScnreeshots];
const chunks = lodashChunk(screenshots, BATCH_SIZE);