-
Notifications
You must be signed in to change notification settings - Fork 899
feat(site): Read users into basic UsersTable #981
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
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
fa600a5
Start users
presleyp aa75ca0
Merge branch 'main' into users-table/presleyp/592
presleyp 665e217
Set up fake response
presleyp 934e060
Update handler
presleyp a2a1a04
Update types
presleyp 201b34a
Set up page
presleyp b45ddaf
Start adding table
presleyp 0c341ed
Add header
presleyp aac1aee
Add Header
presleyp 40c61db
Remove roles
presleyp ca729e9
Add UsersPageView
presleyp 3fce4f0
Add test
presleyp 96d3a72
Lint
presleyp 6757380
Storybook error summary
presleyp b5fd9c8
Strip Pager to just what's currently needed
presleyp 30ced2f
Clean up ErrorSummary while I'm here
presleyp 272633b
Storybook tweaks
presleyp 1dda810
Extract language
presleyp be60aa8
Lint
presleyp 8d22584
Add missing $
presleyp 91ac0d5
Merge branch 'main' into users-table/presleyp/592
presleyp a50ea8a
Lint
presleyp bf06e92
Merge branch 'users-table/presleyp/592' of github.com:coder/coder int…
presleyp 34eb66b
Lint
presleyp 8c03bbc
Fix syntax error
presleyp 1cbc885
Lint
presleyp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add test
- Loading branch information
commit 3fce4f025dbe2afe2c858791cb545c83376735ff
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { screen } from "@testing-library/react" | ||
import React from "react" | ||
import { render } from "../../test_helpers" | ||
import { UsersPage } from "./UsersPage" | ||
|
||
describe("Users Page", () => { | ||
it("has a header with the total number of users", async () => { | ||
render(<UsersPage />) | ||
const total = await screen.findByText(/\d+ total/) | ||
expect(total.innerHTML).toEqual("2 total") | ||
}) | ||
it("shows users", async () => { | ||
render(<UsersPage />) | ||
const users = await screen.findAllByText(/.*@coder.com/) | ||
expect(users.length).toEqual(2) | ||
presleyp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
}) | ||
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.