Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: Update users page to looks like others #1850

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 4 commits into from
May 27, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixworkspace page test
  • Loading branch information
BrunoQuaresma committed May 27, 2022
commit 65323e8300b0363d0374fbd609d79c89cac3d06b
8 changes: 6 additions & 2 deletions site/src/pages/WorkspacePage/WorkspacePage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,12 @@ describe("Workspace Page", () => {
it("shows the timeline build", async () => {
await renderWorkspacePage()
const table = await screen.findByTestId("builds-table")
const rows = table.querySelectorAll("tbody > tr")
expect(rows).toHaveLength(MockBuilds.length)

// Wait for the results to be loaded
await waitFor(async () => {
Copy link
Collaborator Author

@BrunoQuaresma BrunoQuaresma May 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why, but this test should had fail before since it was "wrong"

const rows = table.querySelectorAll("tbody > tr")
expect(rows).toHaveLength(MockBuilds.length)
})
})
})

Expand Down