Fix outdated sidebar test
This commit is contained in:
parent
3d91b1fb27
commit
07dbac1b12
1 changed files with 4 additions and 5 deletions
|
@ -7,9 +7,10 @@ describe.concurrent('Sidebar', () => {
|
||||||
it('Start default', () => {
|
it('Start default', () => {
|
||||||
render(
|
render(
|
||||||
<Sidebar
|
<Sidebar
|
||||||
|
selectedContainer={undefined}
|
||||||
componentOptions={[]}
|
componentOptions={[]}
|
||||||
isOpen={true}
|
isOpen={true}
|
||||||
buttonOnClick={() => {}}
|
buttonOnClick={() => { } } categories={[]}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
const stuff = screen.queryByText(/stuff/i);
|
const stuff = screen.queryByText(/stuff/i);
|
||||||
|
@ -22,8 +23,7 @@ describe.concurrent('Sidebar', () => {
|
||||||
render(<Sidebar
|
render(<Sidebar
|
||||||
componentOptions={[]}
|
componentOptions={[]}
|
||||||
isOpen={false}
|
isOpen={false}
|
||||||
buttonOnClick={() => {}}
|
buttonOnClick={() => { } } selectedContainer={undefined} categories={[]} />);
|
||||||
/>);
|
|
||||||
|
|
||||||
const stuff = screen.queryByText(/stuff/i);
|
const stuff = screen.queryByText(/stuff/i);
|
||||||
expect(screen.getByText(/Components/i).classList.contains('-left-64')).toBeDefined();
|
expect(screen.getByText(/Components/i).classList.contains('-left-64')).toBeDefined();
|
||||||
|
@ -45,8 +45,7 @@ describe.concurrent('Sidebar', () => {
|
||||||
}
|
}
|
||||||
]}
|
]}
|
||||||
isOpen={true}
|
isOpen={true}
|
||||||
buttonOnClick={handleButtonClick}
|
buttonOnClick={handleButtonClick} selectedContainer={undefined} categories={[]} />);
|
||||||
/>);
|
|
||||||
const stuff = screen.getByText(/stuff/i);
|
const stuff = screen.getByText(/stuff/i);
|
||||||
|
|
||||||
expect(stuff).toBeDefined();
|
expect(stuff).toBeDefined();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue