Skip to content

Commit

Permalink
test: load visual regression fonts locally instead of using a CDN
Browse files Browse the repository at this point in the history
  • Loading branch information
vsgoulart committed Feb 7, 2025
1 parent 17103e4 commit 7969a11
Show file tree
Hide file tree
Showing 17 changed files with 54 additions and 30 deletions.
15 changes: 1 addition & 14 deletions e2e/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Forms playground</title>
<link
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,600;1,400&display=swap"
rel="stylesheet" />
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap" rel="stylesheet" />
<style>
html,
body,
#container {
margin: 0;
padding: 0;
width: 100vw;
height: 100vh;
}
</style>
<link rel="stylesheet" href="./styles.scss" />
</head>
<body>
<div id="container" role="main"></div>
Expand Down
11 changes: 11 additions & 0 deletions e2e/styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
$font-prefix: '../node_modules/@ibm/plex';
@import '../node_modules/@ibm/plex/scss/ibm-plex.scss';

html,
body,
#container {
margin: 0;
padding: 0;
width: 100vw;
height: 100vh;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 39 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"@bpmn-io/properties-panel": "^3.25.1",
"@carbon/react": "^1.73.0",
"@carbon/styles": "^1.72.0",
"@ibm/plex": "^6.4.1",
"@playwright/test": "^1.49.1",
"@rollup/plugin-alias": "^5.1.1",
"@rollup/plugin-babel": "^6.0.4",
Expand Down
3 changes: 2 additions & 1 deletion playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export default defineConfig({
use: {
actionTimeout: 0,
baseURL: 'http://localhost:8080',
trace: 'on-first-retry',
trace: 'retain-on-failure',
video: 'retain-on-failure',
},
projects: [
{
Expand Down

0 comments on commit 7969a11

Please sign in to comment.