Skip to content

Commit

Permalink
Switch to using @fontsource for Inter & Inconsolata (#28540)
Browse files Browse the repository at this point in the history
* Switch to using @fontsource for Inter & Inconsolata

Signed-off-by: Michael Telatynski <[email protected]>

* Remove unused font Open_Sans

Signed-off-by: Michael Telatynski <[email protected]>

* Switch to less broken imports

Signed-off-by: Michael Telatynski <[email protected]>

* Switch to Ubuntu 24.04

Signed-off-by: Michael Telatynski <[email protected]>

* Discard changes to res/themes/dark/css/dark.pcss

* Discard changes to res/themes/legacy-light/css/_fonts.pcss

* Discard changes to res/themes/light-high-contrast/css/light-high-contrast.pcss

* Discard changes to res/themes/light/css/light.pcss

* Discard changes to .github/workflows/end-to-end-tests.yaml

* Set outputDir for fonts

Signed-off-by: Michael Telatynski <[email protected]>

* Use headed mode for Playwright

Signed-off-by: Michael Telatynski <[email protected]>

* Switch to new Chrome headless mode instead

Signed-off-by: Michael Telatynski <[email protected]>

* Cache bust playwright browser install in CI

Signed-off-by: Michael Telatynski <[email protected]>

* Update screenshots

Signed-off-by: Michael Telatynski <[email protected]>

* Try with 22.04

Signed-off-by: Michael Telatynski <[email protected]>

* Update to Ubuntu Noble

Signed-off-by: Michael Telatynski <[email protected]>

---------

Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy authored Dec 4, 2024
1 parent 1d51323 commit db5b335
Show file tree
Hide file tree
Showing 174 changed files with 40 additions and 352 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/end-to-end-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
name: "Run Tests ${{ matrix.runner }}/${{ strategy.job-total }}"
needs: build
if: inputs.skip != true
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
permissions:
actions: read
issues: read
Expand Down Expand Up @@ -124,11 +124,11 @@ jobs:
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ steps.playwright.outputs.version }}
key: ${{ runner.os }}-playwright-${{ steps.playwright.outputs.version }}-chromium

- name: Install Playwright browsers
- name: Install Playwright browser
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: yarn playwright install --with-deps
run: yarn playwright install --with-deps --no-shell chromium

- name: Run Playwright tests
run: yarn playwright test --shard ${{ matrix.runner }}/${{ strategy.job-total }}
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@
},
"dependencies": {
"@babel/runtime": "^7.12.5",
"@fontsource/inconsolata": "^5",
"@fontsource/inter": "^5",
"@formatjs/intl-segmenter": "^11.5.7",
"@matrix-org/analytics-events": "^0.29.0",
"@matrix-org/emojibase-bindings": "^1.3.3",
Expand Down
3 changes: 2 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
Please see LICENSE files in the repository root for full details.
*/

import { defineConfig } from "@playwright/test";
import { defineConfig, devices } from "@playwright/test";

const baseURL = process.env["BASE_URL"] ?? "http://localhost:8080";

export default defineConfig({
projects: [{ name: "Chrome", use: { ...devices["Desktop Chrome"], channel: "chromium" } }],
use: {
viewport: { width: 1280, height: 720 },
ignoreHTTPSErrors: true,
Expand Down
2 changes: 1 addition & 1 deletion playwright/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/playwright:v1.49.0-jammy
FROM mcr.microsoft.com/playwright:v1.49.0-noble

WORKDIR /work

Expand Down
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified playwright/snapshots/widgets/layout.spec.ts/apps-drawer-linux.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed res/fonts/Inter/Inter-Bold.woff
Binary file not shown.
Binary file removed res/fonts/Inter/Inter-Bold.woff2
Binary file not shown.
Binary file removed res/fonts/Inter/Inter-BoldItalic.woff
Binary file not shown.
Binary file removed res/fonts/Inter/Inter-BoldItalic.woff2
Binary file not shown.
Binary file removed res/fonts/Inter/Inter-Italic.woff
Binary file not shown.
Binary file removed res/fonts/Inter/Inter-Italic.woff2
Binary file not shown.
Binary file removed res/fonts/Inter/Inter-Medium.woff
Binary file not shown.
Binary file removed res/fonts/Inter/Inter-Medium.woff2
Binary file not shown.
Binary file removed res/fonts/Inter/Inter-MediumItalic.woff
Binary file not shown.
Binary file removed res/fonts/Inter/Inter-MediumItalic.woff2
Binary file not shown.
Binary file removed res/fonts/Inter/Inter-Regular.woff
Binary file not shown.
Binary file removed res/fonts/Inter/Inter-Regular.woff2
Binary file not shown.
Binary file removed res/fonts/Inter/Inter-SemiBold.woff
Binary file not shown.
Binary file removed res/fonts/Inter/Inter-SemiBold.woff2
Binary file not shown.
Binary file removed res/fonts/Inter/Inter-SemiBoldItalic.woff
Binary file not shown.
Binary file removed res/fonts/Inter/Inter-SemiBoldItalic.woff2
Binary file not shown.
202 changes: 0 additions & 202 deletions res/fonts/Open_Sans/LICENSE.txt

This file was deleted.

Binary file removed res/fonts/Open_Sans/OpenSans-Bold.ttf
Binary file not shown.
Binary file removed res/fonts/Open_Sans/OpenSans-BoldItalic.ttf
Binary file not shown.
Binary file removed res/fonts/Open_Sans/OpenSans-Italic.ttf
Binary file not shown.
Binary file removed res/fonts/Open_Sans/OpenSans-Regular.ttf
Binary file not shown.
Binary file removed res/fonts/Open_Sans/OpenSans-Semibold.ttf
Binary file not shown.
Binary file removed res/fonts/Open_Sans/OpenSans-SemiboldItalic.ttf
Binary file not shown.
Loading

0 comments on commit db5b335

Please sign in to comment.