Skip to content

Commit

Permalink
Merge branch 'main' into expand-warnings-logs
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveDarsa committed Mar 1, 2024
2 parents 9fb7eda + 33fb8ad commit 4da5851
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ui-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ jobs:
auto-cancel-after-failures: 1
wait-on: 'http://localhost:3000'
command: yarn cypress:runRbac
continue-on-error: true

- name: Run General Cypress Tests
uses: cypress-io/github-action@v6
Expand All @@ -81,7 +80,6 @@ jobs:
auto-cancel-after-failures: 1
wait-on: 'http://localhost:3000'
command: yarn cypress:runGeneral
continue-on-error: true

- name: Run Organization Cypress Tests
uses: cypress-io/github-action@v6
Expand All @@ -90,7 +88,6 @@ jobs:
auto-cancel-after-failures: 1
wait-on: 'http://localhost:3000'
command: yarn cypress:runOrganizations
continue-on-error: true

- name: Stop Docker containers
run: |
Expand Down
5 changes: 4 additions & 1 deletion src/components/Accordion/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect } from '@storybook/jest';
import { Meta, StoryObj } from '@storybook/react';
import { userEvent, within } from '@storybook/testing-library';
import { userEvent, waitFor, within } from '@storybook/testing-library';

import Accordion from './index';

Expand Down Expand Up @@ -51,6 +51,9 @@ export const WithChildren: Story = {
),
},
play: async ({ canvasElement }) => {
// wait for sb root to render;
await waitFor(() => within(canvasElement).getByTestId('storybook-accordion'));

// toggle functionality
const canvas = within(canvasElement);
const element = await Promise.resolve(canvas.getByTestId('storybook-accordion'));
Expand Down

0 comments on commit 4da5851

Please sign in to comment.