-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*Fix tests
- Loading branch information
Showing
13 changed files
with
101 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,7 @@ describe('@vaadin/hilla-react-crud', () => { | |
expect(firstName.disabled).to.be.true; | ||
|
||
const someInteger = await form.getField('Some integer'); | ||
expect(someInteger.value).to.equal('0'); | ||
expect(someInteger.value).to.equal(''); | ||
expect(someInteger.disabled).to.be.true; | ||
}); | ||
|
||
|
@@ -113,8 +113,8 @@ describe('@vaadin/hilla-react-crud', () => { | |
|
||
expect(firstNameField.value).to.equal(''); | ||
expect(lastNameField.value).to.equal(''); | ||
expect(someIntegerField.value).to.equal('0'); | ||
expect(someDecimalField.value).to.equal('0'); | ||
expect(someIntegerField.value).to.equal(''); | ||
expect(someDecimalField.value).to.equal(''); | ||
await form.typeInField('First name', 'Jeff'); | ||
await form.typeInField('Last name', 'Lastname'); | ||
await form.typeInField('Email', '[email protected]'); | ||
|
@@ -146,13 +146,16 @@ describe('@vaadin/hilla-react-crud', () => { | |
await form.typeInField('Last name', 'Lastname'); | ||
await form.typeInField('Email', '[email protected]'); | ||
await form.typeInField('Some integer', '12'); | ||
await form.typeInField('Some decimal', '12.345'); | ||
await form.typeInField('Some decimal', '11--12'); | ||
// await form.typeInField('Department', '{{"id":0,"version":0,"name":""}}'); | ||
|
||
// TODO is correct? | ||
await form.submit(); | ||
await form.typeInField('First name', 'Jerp'); | ||
await form.submit(); | ||
expect(grid.getBodyCellContent(1, 0)).to.have.rendered.text('Jerp'); | ||
expect(grid.getRowCount()).to.equal(3); | ||
}); | ||
}).timeout(5000); | ||
|
||
it('updates grid and form when creating a new item after selecting an existing item', async () => { | ||
const { grid, form, newButton } = await CrudController.init(render(<TestAutoCrud />), user); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.