File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ describe('ClusterMenu', () => {
1919 />
2020 ) ;
2121 const getMenuItems = ( ) => screen . getAllByRole ( 'menuitem' ) ;
22- const getMenuItem = ( ) => screen . getByRole ( 'menuitem' ) ;
2322 const getBrokers = ( ) => screen . getByTitle ( 'Brokers' ) ;
2423 const getTopics = ( ) => screen . getByTitle ( 'Brokers' ) ;
2524 const getConsumers = ( ) => screen . getByTitle ( 'Brokers' ) ;
Original file line number Diff line number Diff line change @@ -45,23 +45,25 @@ describe('New', () => {
4545 await act ( async ( ) => {
4646 renderComponent ( clusterTopicNewPath ( clusterName ) ) ;
4747 } ) ;
48- expect ( screen . getByRole ( 'heading' , { name : / l o c a l \/ T o p i c s \/ C r e a t e / } ) ) . toBeInTheDocument ( ) ;
48+ expect (
49+ screen . getByRole ( 'heading' , { name : / l o c a l \/ T o p i c s \/ C r e a t e / } )
50+ ) . toBeInTheDocument ( ) ;
4951 } ) ;
5052
5153 it ( 'checks header for copy' , async ( ) => {
5254 await act ( async ( ) => {
5355 renderComponent ( `${ clusterTopicCopyPath ( clusterName ) } ?name=test` ) ;
5456 } ) ;
55- expect ( screen . getByRole ( 'heading' , { name : / l o c a l \/ T o p i c s \/ C o p y / } ) ) . toBeInTheDocument ( ) ;
57+ expect (
58+ screen . getByRole ( 'heading' , { name : / l o c a l \/ T o p i c s \/ C o p y / } )
59+ ) . toBeInTheDocument ( ) ;
5660 } ) ;
5761 it ( 'validates form' , async ( ) => {
5862 renderComponent ( clusterTopicNewPath ( clusterName ) ) ;
5963 await userEvent . type ( screen . getByPlaceholderText ( 'Topic Name' ) , topicName ) ;
6064 await userEvent . clear ( screen . getByPlaceholderText ( 'Topic Name' ) ) ;
6165 await userEvent . tab ( ) ;
62- expect (
63- screen . getByText ( 'Topic Name is required' )
64- ) . toBeInTheDocument ( ) ;
66+ expect ( screen . getByText ( 'Topic Name is required' ) ) . toBeInTheDocument ( ) ;
6567 await userEvent . type (
6668 screen . getByLabelText ( 'Number of Partitions *' ) ,
6769 minValue
You can’t perform that action at this time.
0 commit comments