Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 254cf6b

Browse files
committed
fix: test case
1 parent 087c1ce commit 254cf6b

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

src/features/dashboard/components/ApiTokenForm/CreateTokenField/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const CreateTokenField = ({
8787
)}
8888
{token_name_exists && (
8989
<div className='error-message'>
90-
<p>No duplicate token names are allowed for the same account.</p>
90+
<p>That name is taken. Choose another.</p>
9191
</div>
9292
)}
9393
</React.Fragment>

src/features/dashboard/components/ApiTokenForm/__tests__/api-token.form.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ describe('Home Page', () => {
135135

136136
await userEvent.type(nameInput, 'testtoken1');
137137

138-
const error = screen.getByText(/No duplicate token names are allowed for the same account./i);
138+
const error = screen.getByText(/That name is taken. Choose another./i);
139139
expect(error).toBeVisible;
140140
});
141141

src/features/dashboard/components/ApiTokenForm/api-token.form.module.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ form {
5555
display: flex;
5656
position: relative;
5757
box-sizing: border-box;
58-
margin: rem(1) 0;
5958
&:hover {
6059
border: 1px solid var(--colors-greyLight600);
6160
}

src/features/dashboard/components/TokenNameRestrictions/TokenNameRestrictions.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
font-weight: 400;
66
line-height: 18px;
77
padding-left: rem(2.8);
8+
margin-top: rem(1);
89
color: var(--colors-greyLight600);
910
}

0 commit comments

Comments
 (0)