Skip to content

Commit

Permalink
fix: e2e test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhdaware committed Feb 24, 2025
1 parent f1c2833 commit cf52cc6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/blade-interaction-tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Blade Interaction Tests

# Runs the action when
# 1. 'Run Interaction Tests' label is added to PR
# Runs the action when
# 1. 'Run Interaction Tests' label is added to PR
# 2. Workflow is trigerred manually
# 3. PR is merged to master

Expand All @@ -19,7 +19,7 @@ env:
jobs:
interaction-tests:
name: Run Interaction Tests
runs-on: ubuntu-latest # nosemgrep: non-self-hosted-runner
runs-on: ubuntu-22.04 # nosemgrep: non-self-hosted-runner
if: ${{ github.event_name == 'workflow_dispatch' || github.event.label.name == 'Run Interaction Tests' || github.event_name == 'push' }}
steps:
- name: Checkout Codebase
Expand All @@ -33,5 +33,5 @@ jobs:
- name: Run Interaction Tests
run: |
npx playwright install chromium firefox webkit --with-deps
yarn test:react:interaction:ci
yarn test:react:interaction:ci
working-directory: packages/blade
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ SelectACountry.play = async () => {
await expect(queryByRole('menu')).not.toBeInTheDocument();

// expect albania to be selected
await expect(getByRole('button', { name: /select country/i })).toHaveAccessibleName(/Albania/i);
await expect(getByRole('button', { name: /select country/i })).toHaveAccessibleName(
/Åland Islands - Select Country/i,
);

await sleep(300);
// Ensure that input is in focus, input is tel type;
Expand Down

0 comments on commit cf52cc6

Please sign in to comment.