-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add progress indicator when fetching a studio token #5000
Changes from 5 commits
c15945e
ce6cf50
fd57a8f
409e417
1324e20
2b87439
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -631,7 +631,7 @@ describe('App', () => { | |
}) | ||
|
||
describe('Studio not connected', () => { | ||
it('should show buttons which request a token from Studio or add an already creatd one', () => { | ||
it('should show buttons which request a token from Studio or add an already created one', () => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Spotted a typo that I went ahead and fixed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
renderApp() | ||
mockPostMessage.mockClear() | ||
const getTokenButton = screen.getByText('Get Token') | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ import { Button } from '../../../shared/components/button/Button' | |
export const Connect: React.FC = () => { | ||
return ( | ||
<EmptyState isFullScreen={false}> | ||
<div data-testid="setup-studio-content"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pretty unrelated to this pr since I'm no longer updating this section, but we're not using the test id anywhere. |
||
<div> | ||
<h1> | ||
Connect to <a href={STUDIO_URL}>Studio</a> | ||
</h1> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Originally, I was going to update our Studio section with a loading message but, after a 1v1 with Stephanie, decided on using a progress Toast instead since: