Skip to content

Commit

Permalink
refactor: update primitive add label in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
awesthouse committed Mar 11, 2024
1 parent 7d7bfd4 commit 02a4f63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/tests/plugin-form-Nested.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ test('Locations', async () => {
const locationsDiv = page.getByTestId('locations')
await expect(locationsDiv.getByRole('textbox')).toHaveCount(1)
await expect(locationsDiv.getByRole('textbox')).toHaveValue('Trondheim')
await locationsDiv.getByLabel('Append primitive').click()
await locationsDiv.getByLabel('Add new item to list').click()
await expect(locationsDiv.getByRole('textbox')).toHaveCount(2)
await locationsDiv.getByRole('textbox').last().fill('Oslo')
await page.getByTestId('form-submit').click()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('List of strings', () => {
{ wrapper }
)
return await waitFor(() => {
const addButton = screen.getByLabelText('Append primitive')
const addButton = screen.getByLabelText('Add new item to list')
return { ...utils, addButton }
})
}
Expand Down

0 comments on commit 02a4f63

Please sign in to comment.