Skip to content

Commit

Permalink
Generate SearchField and RenderElement screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
BOTLANNER committed Jul 5, 2023
1 parent bec05b5 commit 6db34c3
Show file tree
Hide file tree
Showing 58 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/add-screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
if (ghCtx.event_name === 'workflow_dispatch') {
try {
const response = await github.request(`GET /repos/${ghCtx.repository}/actions/runs`);
const before = response.data.workflow_runs.find(wr => wr.name === ghCtx.workflow && wr.id !== ghCtx.run_id && wr.head_sha && wr.head_sha !== ghCtx.sha && wr.head_branch === ghCtx.ref_name)?.head_sha;
const before = response.data.workflow_runs.find(wr => wr.name === ghCtx.workflow && wr.id !== ghCtx.run_id && wr.head_sha && wr.head_sha !== ghCtx.sha && wr.head_branch === ghCtx.ref_name && wr.status === 'completed' && wr.conclusion !== 'failure')?.head_sha;
if (before) {
list = execSync(`git diff-tree --no-commit-id --name-only -r ${before} ${ghCtx.sha}`).toString();
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
3 changes: 2 additions & 1 deletion src/render-element/RenderElement.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import * as jestMock from 'jest-mock';
import { test, expect, withCoverage, type Page } from '../utils/JestPlaywright.js';
import { test, expect, withCoverage } from '../utils/JestPlaywright.js';
import type { RenderElement } from './RenderElement.js';

test(`Render Element - Lit Template Visual and Behaviour`, async ({ page }) => {
Expand Down
4 changes: 2 additions & 2 deletions src/search-field/SearchField.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import {
testSuffixBehaviour,
testDisabledBehaviour
} from '../core/OmniInputPlaywright.js';
import { test, expect, withCoverage, type Page } from '../utils/JestPlaywright.js';
import { test, expect, withCoverage } from '../utils/JestPlaywright.js';
import type { SearchField } from './SearchField.js';

test(`Search Field - Interactive`, async ({ page, browserName }) => {
test(`Search Field - Interactive`, async ({ page }) => {
await withCoverage(page, async () => {
await page.goto('/components/search-field/');
await page.evaluate(() => document.fonts.ready);
Expand Down

0 comments on commit 6db34c3

Please sign in to comment.