Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
20 changes: 11 additions & 9 deletions .github/workflows/update-screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,22 @@ jobs:
app-id: ${{ vars.STRYKER_MUTATOR_APP_ID }}
private-key: ${{ secrets.STRYKER_MUTATOR_NPA_KEY }}
- uses: actions/checkout@v6
with:
token: ${{ steps.generate-token.outputs.token }}
persist-credentials: false
- uses: ./.github/setup
- run: npx playwright install chromium firefox --with-deps
- run: npx nx run-many --target=build
- run: npx nx run-many -t generate,build:tsc
- run: npx nx run elements:test:integration:update
- name: Get GitHub App User ID
id: get-user-id
shell: bash
run: echo "user-id=$(gh api "/users/${{ steps.generate-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
- run: |
git config --global user.name '${{ steps.generate-token.outputs.app-slug }}[bot]'
git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.generate-token.outputs.app-slug }}[bot]@users.noreply.github.com'
- name: Commit
run: |
git config --global user.name "stryker-mutator[bot]"
git config --global user.email 158062761+stryker-mutator[bot]@users.noreply.github.com
git pull
git add .
git commit -m "test(screenshots): update screenshots for ${{ runner.os }}"
git pull --rebase
git push
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
18 changes: 4 additions & 14 deletions packages/elements/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default defineConfig({
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: process.env.CI ? [['github'], ['html']] : [['list'], ['html']],
reporter: process.env.CI ? [['github'], ['list'], ['html']] : [['list'], ['html']],
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
Expand All @@ -31,15 +31,9 @@ export default defineConfig({
},
/* Configure projects for major browsers */
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'], viewport: { width: 1400, height: 1000 } },
},
{ name: 'chromium', use: { ...devices['Desktop Chrome'], viewport: { width: 1400, height: 1000 } } },

{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
{ name: 'firefox', use: { ...devices['Desktop Firefox'] } },

// {
// name: 'webkit',
Expand Down Expand Up @@ -68,9 +62,5 @@ export default defineConfig({
],

/* Run your local dev server before starting the tests */
webServer: {
command: 'npm run start -- --port 5173',
url: 'http://localhost:5173',
reuseExistingServer: !process.env.CI,
},
webServer: { command: 'npm run start -- --port 5173', url: 'http://localhost:5173', reuseExistingServer: !process.env.CI },
});
62 changes: 31 additions & 31 deletions packages/elements/src/components/app/theme.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* Prismjs theming (code highlighting) ===================================== */
:host(:not([theme='dark'])) {
--prism-maintext: #393a34;
--prism-background: #f6f8fa;
--prism-border: #ddd;
--prism-maintext: var(--color-gray-700);
--prism-background: var(--color-gray-50);
--prism-border: var(--color-gray-200);

/* from https://github.com/FormidableLabs/prism-react-renderer/blob/master/src/themes/github.js */
--prism-cdata: #999988;
Expand Down Expand Up @@ -42,8 +42,8 @@
}
:host([theme='dark']) {
/* From https://atelierbram.github.io/syntax-highlighting/prism/demo/assets/css/prism-atom-dark.css */
--prism-maintext: #d3d0c8;
--prism-background: #1d1f21;
--prism-maintext: var(--mut-gray-700);
--prism-background: var(--mut-gray-50);
--prism-border: var(--mut-gray-200);

--prism-cdata: #7c7c7c;
Expand Down Expand Up @@ -96,13 +96,13 @@
/* @see https://github.com/microsoft/vscode/blob/master/extensions/theme-seti/icons/vs-seti-icon-theme.json */
:host(:not([theme='dark'])) {
--mut-file-ts-color: #498ba7;
--mut-file-ts-test-color: #b7b73b;
--mut-file-ts-test-color: #cc6d2e;
--mut-file-scala-color: #b8383d;
--mut-file-java-color: #b8383d;
--mut-file-js-color: #b7b73b;
--mut-file-js-test-color: #cc6d2e;
--mut-file-php-color: #9068b0;
--mut-file-html-color: #498ba7;
--mut-file-html-color: #cc6d2e;
--mut-file-csharp-color: #498ba7;
--mut-file-vue-color: #7fae42;
--mut-file-gherkin-color: #00a818;
Expand All @@ -112,13 +112,13 @@
}
:host([theme='dark']) {
--mut-file-ts-color: #519aba;
--mut-file-ts-test-color: #cbcb41;
--mut-file-ts-test-color: #e37933;
--mut-file-scala-color: #cc3e44;
--mut-file-java-color: #cc3e44;
--mut-file-js-color: #cbcb41;
--mut-file-js-test-color: #e37933;
--mut-file-php-color: #a074c4;
--mut-file-html-color: #519aba;
--mut-file-html-color: #e37933;
--mut-file-csharp-color: #519aba;
--mut-file-vue-color: #8dc149;
--mut-file-gherkin-color: #10b828;
Expand All @@ -138,32 +138,32 @@
}

:host(:not([theme='dark'])) {
--mut-octicon-icon-color: #498ba7;
--mut-line-number: #6e7781;
--mut-diff-add-bg: #e6ffec;
--mut-diff-add-bg-line-number: #ccffd8;
--mut-diff-add-line-number: #24292f;
--mut-diff-del-bg: #ffebe9;
--mut-diff-del-bg-line-number: #ffd7d5;
--mut-octicon-icon-color: var(--color-primary-600);
--mut-line-number: var(--color-gray-400);

--mut-diff-add-bg: oklch(from var(--color-green-300) l c h / 0.3);
--mut-diff-add-bg-line-number: oklch(from var(--color-green-300) l c h / 0.5);
--mut-diff-add-line-number: var(--color-gray-600);

--mut-diff-del-bg: oklch(from var(--color-red-300) l c h / 0.3);
--mut-diff-del-bg-line-number: oklch(from var(--color-red-300) l c h / 0.5);

--mut-diff-del-line-number: var(--mut-diff-add-line-number);
--mut-badge-info-bg: #54c6ec;
--mut-badge-info: #212529;
--mut-code-lense: #919191;
}
:host([theme='dark']) {
color-scheme: dark;

--mut-octicon-icon-color: #519aba;
--mut-line-number: #484f58;
--mut-diff-add-bg: rgba(46, 160, 67, 0.15);
--mut-diff-add-bg-line-number: rgba(63, 185, 80, 0.3);
--mut-diff-add-line-number: #c9d1d9;
--mut-diff-del-bg: rgba(248, 81, 73, 0.15);
--mut-diff-del-bg-line-number: rgba(248, 81, 73, 0.3);
--mut-diff-del-line-number: #c9d1d9;
--mut-badge-info-bg: #17a3b8;
--mut-badge-info: #fff;
--mut-code-lense: #999;
--mut-octicon-icon-color: var(--color-primary-500);
--mut-line-number: var(--color-gray-400);

--mut-diff-add-bg: oklch(from var(--color-green-600) l c h / 0.15);
--mut-diff-add-bg-line-number: oklch(from var(--color-green-600) l c h / 0.3);
--mut-diff-add-line-number: var(--color-gray-700);

--mut-diff-del-bg: oklch(from var(--color-red-600) l c h / 0.15);
--mut-diff-del-bg-line-number: oklch(from var(--color-red-600) l c h / 0.3);

--mut-diff-del-line-number: var(--mut-diff-add-line-number);
}

/* Dark mode colors */
Expand All @@ -184,7 +184,7 @@

/* --mut-primary-50: var(--color-sky-900); */
--mut-primary-100: var(--color-sky-800);
/* --mut-primary-200: var(--color-sky-700); */
--mut-primary-200: var(--color-sky-700);
/* --mut-primary-300: var(--color-sky-600); */
/* --mut-primary-400: var(--color-sky-500); */
/* --mut-primary-500: var(--color-sky-400); */
Expand Down
6 changes: 4 additions & 2 deletions packages/elements/src/components/breadcrumb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class MutationTestReportBreadcrumbComponent extends BaseElement {
}

public render() {
return html`<nav class="my-4 flex rounded-md border border-primary-600 bg-primary-100 p-3 text-gray-700" aria-label="Breadcrumb">
return html`<nav class="my-4 flex rounded-md bg-primary-100 p-3 text-gray-700" aria-label="Breadcrumb">
<ol class="inline-flex items-center">
${this.path && this.path.length > 0 ? this.#renderLink(this.rootName, []) : this.#renderActiveItem(this.rootName)}
${this.#renderBreadcrumbItems()}
Expand Down Expand Up @@ -71,7 +71,9 @@ export class MutationTestReportBreadcrumbComponent extends BaseElement {

#renderSearchIcon() {
return html`
<button @click="${() => this.#dispatchFilePickerOpenEvent()}" class="ml-auto" title="Open file picker (Ctrl-K)">${searchIcon}</button>
<button @click="${() => this.#dispatchFilePickerOpenEvent()}" class="ml-auto cursor-pointer" title="Open file picker (Ctrl-K)"
>${searchIcon}</button
>
`;
}

Expand Down
Loading
Loading