11// TODO try and get TS path alias working to avoid relative paths like this
2+ import { LocalDataSourceProvider } from "@vuu-ui/vuu-data-test" ;
23import {
34 DefaultFilterBar ,
45 FilterBarMultipleFilters ,
@@ -78,7 +79,7 @@ describe("WHEN it initially renders", () => {
7879 filters : [ filter , { ...filter , value : "USD" } ] ,
7980 activeIndices : [ 1 ] ,
8081 } }
81- />
82+ /> ,
8283 ) ;
8384
8485 cy . get ( "@onApplyFilter" ) . should ( "be.calledWithExactly" , {
@@ -122,7 +123,7 @@ describe("The mouse user", () => {
122123 < DefaultFilterBar
123124 onApplyFilter = { onApplyFilter }
124125 onFilterStateChanged = { onFilterStateChanged }
125- />
126+ /> ,
126127 ) ;
127128 findAddButton ( ) . realClick ( ) ;
128129 cy . findAllByRole ( "combobox" ) . eq ( 0 ) . should ( "be.focused" ) ;
@@ -253,7 +254,7 @@ describe("The mouse user", () => {
253254 < DefaultFilterBar
254255 onApplyFilter = { onApplyFilter }
255256 onFilterStateChanged = { onFilterStateChanged }
256- />
257+ /> ,
257258 ) ;
258259 findAddButton ( ) . realClick ( ) ;
259260 cy . findAllByRole ( "combobox" ) . eq ( 0 ) . should ( "be.focused" ) ;
@@ -304,12 +305,12 @@ describe("The mouse user", () => {
304305 findFilter ( '[data-index="0"]' ) . should (
305306 "have.attr" ,
306307 "aria-checked" ,
307- "false"
308+ "false" ,
308309 ) ;
309310 findFilter ( '[data-index="1"]' ) . should (
310311 "have.attr" ,
311312 "aria-checked" ,
312- "true"
313+ "true" ,
313314 ) ;
314315
315316 cy . get ( "@filterStateChangeHandler" ) . should ( "be.calledWithExactly" , {
@@ -396,7 +397,7 @@ describe("The keyboard user", () => {
396397 cy . get ( ".vuuFilterClauseOperator input" ) . should (
397398 "have.attr" ,
398399 "aria-expanded" ,
399- "true"
400+ "true" ,
400401 ) ;
401402 } ) ;
402403 } ) ;
@@ -426,7 +427,7 @@ describe("The keyboard user", () => {
426427 cy . get ( ".vuuFilterClauseValue input" ) . should (
427428 "have.attr" ,
428429 "aria-expanded" ,
429- "true"
430+ "true" ,
430431 ) ;
431432 } ) ;
432433 describe ( "THEN WHEN user uses keyboard to select USD" , ( ) => {
@@ -475,7 +476,7 @@ const getDate = (t: "start-today" | "start-tomorrow" | "end-today") => {
475476 return new Date (
476477 today . getFullYear ( ) ,
477478 today . getMonth ( ) ,
478- today . getDate ( ) + 1
479+ today . getDate ( ) + 1 ,
479480 ) ;
480481 case "end-today" :
481482 today . setHours ( 23 , 59 , 59 , 999 ) ;
@@ -493,10 +494,12 @@ describe.only("WHEN a user applies a date filter", () => {
493494 const onApplyFilter = cy . stub ( ) . as ( "applyFilterHandler" ) ;
494495 const onFilterStateChanged = cy . stub ( ) . as ( "filterStateChangeHandler" ) ;
495496 cy . mount (
496- < DefaultFilterBar
497- onApplyFilter = { onApplyFilter }
498- onFilterStateChanged = { onFilterStateChanged }
499- />
497+ < LocalDataSourceProvider >
498+ < DefaultFilterBar
499+ onApplyFilter = { onApplyFilter }
500+ onFilterStateChanged = { onFilterStateChanged }
501+ />
502+ </ LocalDataSourceProvider > ,
500503 ) ;
501504 } ) ;
502505
@@ -551,7 +554,7 @@ describe.only("WHEN a user applies a date filter", () => {
551554 findAddButton ( ) . realClick ( ) ;
552555 clickListItems ( DATE_COLUMN , op ) ;
553556 cy . findByRole ( "textbox" , { name : "Start date" } ) . should ( "be.focused" ) ;
554- cy . realPress ( "ArrowDown" )
557+ cy . realPress ( "ArrowDown" ) ;
555558
556559 // cy.get(".vuuDatePopup .vuuIconButton").realClick();
557560 cy . get ( `${ VISIBLE_MONTH } .saltCalendarDay-today` ) . realClick ( ) ;
@@ -569,7 +572,7 @@ describe.only("WHEN a user applies a date filter", () => {
569572 filters : [ expectedFilter ] ,
570573 activeIndices : [ 0 ] ,
571574 } ) ;
572- } )
575+ } ) ,
573576 ) ;
574577} ) ;
575578
@@ -617,7 +620,7 @@ describe("Deleting and renaming filters", () => {
617620 op : "=" ,
618621 value : "EUR" ,
619622 } ,
620- "Test"
623+ "Test" ,
621624 ) ;
622625 } ) ;
623626 } ) ;
0 commit comments