LuisValgoi / ui5-webcomponents-react-seed

Seed of UI5 Web Components for React
12 stars 1 forks source link

Add describe for test suite and refactor last validator test #40

Closed LuisValgoi closed 3 years ago

LuisValgoi commented 3 years ago

test('should not appear in the document', async () => { const childText = 'inner text'

render( <ComponentValidator allowedAuthorities={['canAccessDropApplication']} authorityKey='permissions'>

{childText}

</ComponentValidator>, { route: '/todo/list' });

const child = screen.queryByAltText(childText);

expect(child).not.toBeInTheDocument(); });