@@ -167,7 +167,7 @@ describe('FilterDropdown', () => {
167167 test ( 'renders the modal with correct active tab' , ( ) => {
168168 renderWithRouter (
169169 < FilterDropdown
170- tabs = { [ Tab . UNASSIGNED , Tab . COMPLETED ] }
170+ tabs = { [ Tab . UNASSIGNED , Tab . DONE ] }
171171 onSelect = { mockOnSelect }
172172 activeTab = { Tab . COMPLETED }
173173 onClose = { mockOnClose }
@@ -211,7 +211,7 @@ describe('FilterDropdown', () => {
211211 test ( 'Selection of the Backlog Button' , ( ) => {
212212 renderWithRouter (
213213 < FilterDropdown
214- tabs = { [ Tab . BACKLOG , Tab . COMPLETED ] }
214+ tabs = { [ Tab . BACKLOG , Tab . DONE ] }
215215 onSelect = { mockOnSelect }
216216 activeTab = { Tab . BACKLOG }
217217 onClose = { mockOnClose }
@@ -222,17 +222,14 @@ describe('FilterDropdown', () => {
222222 expect ( backlogButton ) . toHaveClass ( 'status-button-active' ) ;
223223 } ) ;
224224
225- it ( 'Renders Task tab Done, when dev flag is on ' , async ( ) => {
225+ it ( 'Renders Task tab Done' , async ( ) => {
226226 renderWithRouter (
227227 < FilterDropdown
228228 tabs = { [ Tab . BACKLOG , Tab . COMPLETED , Tab . DONE ] }
229229 onSelect = { mockOnSelect }
230230 activeTab = { Tab . DONE }
231231 onClose = { mockOnClose }
232- /> ,
233- {
234- query : { dev : 'true' } ,
235- }
232+ />
236233 ) ;
237234
238235 const doneButton = screen . queryByText ( / d o n e / i) ;
@@ -241,19 +238,4 @@ describe('FilterDropdown', () => {
241238 expect ( doneButton ) . toBeInTheDocument ( ) ;
242239 expect ( completedButton ) . toBeNull ( ) ;
243240 } ) ;
244- // it('Renders Task status Completed, when dev flag is not on', async () => {
245- // renderWithRouter(
246- // <FilterDropdown
247- // tabs={[Tab.BACKLOG, Tab.COMPLETED, Tab.DONE]}
248- // onSelect={mockOnSelect}
249- // activeTab={Tab.COMPLETED}
250- // onClose={mockOnClose}
251- // />
252- // );
253- // const doneButton = screen.queryByText(/done/i);
254- // const completedButton = screen.queryByText(/completed/i);
255-
256- // expect(completedButton).toBeInTheDocument();
257- // expect(doneButton).toBeNull();
258- // });
259241} ) ;
0 commit comments