Skip to content

refactor: Improve the load state for the list pages #1428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
May 13, 2022
Prev Previous commit
Fix EmptyState tests
  • Loading branch information
BrunoQuaresma committed May 13, 2022
commit f52bb68caa744f50ffd1fedcdbea7ed68bebaf8a
6 changes: 3 additions & 3 deletions site/src/components/EmptyState/EmptyState.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ describe("EmptyState", () => {
await screen.findByText("Friendly greeting")
})

it("renders description component", async () => {
it("renders cta component", async () => {
// Given
const description = <button title="Click me" />
const cta = <button title="Click me" />

// When
render(<EmptyState message="Hello, world" description={description} />)
render(<EmptyState message="Hello, world" cta={cta} />)

// Then
await screen.findByText("Hello, world")
Expand Down