Skip to content

Commit

Permalink
Undid accidental changes to screenshot workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BOTLANNER committed Jul 6, 2023
1 parent 37bfa7d commit b1f35e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/add-screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,31 +198,17 @@ jobs:
env:
CI: true
PW_NO_RETRIES: true

screenshot-commit:
# Only on branches even when failed
if: ${{ always() && startsWith(github.ref, 'refs/heads/') }}
runs-on: macos-latest
needs: [ screenshot-add ]
steps:

- name: Checkout 🛎️
uses: actions/checkout@v3
with:
persist-credentials: true
fetch-depth: 0
token: ${{ secrets.PROTECTED_TOKEN }}

- name: Ensure branch up to date 🌿
run: |
git pull

- name: Ensure branch up to date (again) 🌿
# Only on branches even when failed
if: ${{ always() && startsWith(github.ref, 'refs/heads/') }}
run: |
git pull || true
- name: Auto Commit Changes 👩‍💻
uses: stefanzweifel/git-auto-commit-action@v4
# Only on branches even when failed
if: ${{ always() && startsWith(github.ref, 'refs/heads/') }}
with:
commit_message: Added Missing Screenshots
branch: ${{ env.GITHUB_REF_NAME }}
Expand Down
3 changes: 3 additions & 0 deletions src/core/OmniInputPlaywright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ export const testDisabledBehaviour = (tagName: string, storyExport = 'Disabled')
});
};

/**
* Read story args from story renderer with provided key
*/
export async function getStoryArgs<T = any>(page: Page, key: string, readySelector = '[data-testid]') {
await page.waitForSelector(readySelector);

Expand Down

0 comments on commit b1f35e5

Please sign in to comment.