Improve Properties tests
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
db0c2fe051
commit
a73757d849
1 changed files with 9 additions and 2 deletions
|
@ -10,7 +10,10 @@ describe.concurrent('Properties', () => {
|
|||
onChange={() => {}}
|
||||
/>);
|
||||
|
||||
expect(screen.queryByText(/property-/i)).toBeNull();
|
||||
expect(screen.queryByText('id')).toBeNull();
|
||||
expect(screen.queryByText('parentId')).toBeNull();
|
||||
expect(screen.queryByText('x')).toBeNull();
|
||||
expect(screen.queryByText('y')).toBeNull();
|
||||
});
|
||||
|
||||
it('Some properties', () => {
|
||||
|
@ -30,6 +33,11 @@ describe.concurrent('Properties', () => {
|
|||
onChange={handleChange}
|
||||
/>);
|
||||
|
||||
expect(screen.queryByText('id')).toBeDefined();
|
||||
expect(screen.queryByText('parentId')).toBeDefined();
|
||||
expect(screen.queryByText('x')).toBeDefined();
|
||||
expect(screen.queryByText('y')).toBeDefined();
|
||||
|
||||
let propertyId = container.querySelector('#property-id');
|
||||
let propertyParentId = container.querySelector('#property-parentId');
|
||||
let propertyX = container.querySelector('#property-x');
|
||||
|
@ -58,7 +66,6 @@ describe.concurrent('Properties', () => {
|
|||
onChange={handleChange}
|
||||
/>);
|
||||
|
||||
|
||||
propertyId = container.querySelector('#property-id');
|
||||
propertyParentId = container.querySelector('#property-parentId');
|
||||
propertyX = container.querySelector('#property-x');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue