test: fix tests

This commit is contained in:
mutoe 2023-09-11 19:33:04 +08:00
parent 0591c277b9
commit 09f3818787
No known key found for this signature in database
GPG Key ID: FEE78A0836900C9C
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ describe('# EditArticle page', () => {
await server.waitForRequest('GET', '/api/articles/*')
await userEvent.type(getByPlaceholderText('Enter tags'), 'tag1{Enter}tag2{Enter}')
await userEvent.click(getByRole('button', { name: 'Remove tag: tag1' }))
await userEvent.click(getByRole('button', { name: 'Delete tag: tag1' }))
await fireEvent.click(getByRole('button', { name: 'Publish Article' }))

View File

@ -50,7 +50,7 @@
<i
role="button"
tabindex="0"
:aria-label="`Delete tag ${tag}`"
:aria-label="`Delete tag: ${tag}`"
class="ion-close-round"
@click="removeTag(tag)"
@keypress.enter="removeTag(tag)"