fix form-state tests
This commit is contained in:
@@ -241,14 +241,8 @@ test.describe('Form State', () => {
|
||||
await expect(
|
||||
page.locator('#field-array #array-row-0 #field-array__0__customTextField'),
|
||||
).toHaveValue('2')
|
||||
})
|
||||
|
||||
test('should queue onChange functions', async () => {
|
||||
await page.goto(postsUrl.create)
|
||||
await page.locator('#field-array .array-field__add-row').click()
|
||||
await expect(
|
||||
page.locator('#field-array #array-row-0 #field-array__0__customTextField'),
|
||||
).toHaveValue('This is a default value')
|
||||
await page.unroute(postsUrl.create)
|
||||
})
|
||||
|
||||
describe('Throttled tests', () => {
|
||||
@@ -327,6 +321,8 @@ test.describe('Form State', () => {
|
||||
})
|
||||
|
||||
await assertElementStaysVisible(page, '#field-array #array-row-1')
|
||||
|
||||
await page.unroute(postsUrl.create)
|
||||
})
|
||||
|
||||
test('should queue onChange functions', async () => {
|
||||
@@ -368,7 +364,7 @@ test.describe('Form State', () => {
|
||||
await expect(page.locator('#field-title')).toHaveValue('Test 2')
|
||||
},
|
||||
{
|
||||
allowedNumberOfRequests: 2,
|
||||
allowedNumberOfRequests: 1,
|
||||
timeout: 10000,
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user