Skip to content

Commit

Permalink
add missing peer dependency in ui packages (#1322)
Browse files Browse the repository at this point in the history
* add missing peer dependency in ui packages

* fix breaking calendar tests
  • Loading branch information
heswell authored May 1, 2024
1 parent e60753f commit 8708916
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions vuu-ui/packages/vuu-filters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"uuid": "9.0.0"
},
"peerDependencies": {
"@internationalized/date": "^3.0.0",
"react": ">=17.0.2",
"react-dom": ">=17.0.2"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// TODO try and get TS path alias working to avoid relative paths like this
import { defaultPatternsByType, formatDate } from "@finos/vuu-utils";
import {
DefaultFilterBar,
FilterBarMultipleFilters,
Expand All @@ -9,6 +8,7 @@ import {
const FILTER_CONTAINER = ".vuuFilterBar-filters";
const ADD_BUTTON = ".vuuFilterBar-add";
const FILTER_CLAUSE = ".vuuFilterClause";
const VISIBLE_MONTH = ".saltCalendarCarousel-slide:not([aria-hidden])";

const findFilter = (className: string) =>
cy.get(FILTER_CONTAINER).find(className);
Expand Down Expand Up @@ -438,9 +438,6 @@ const getDate = (t: "start-today" | "start-tomorrow" | "end-today") => {

describe("WHEN a user applies a date filter", () => {
const DATE_COLUMN = "lastUpdated";
const todayDateFormatted = formatDate({ date: defaultPatternsByType.date })(
new Date()
);
const startOfToday = getDate("start-today").getTime();
const endOfToday = getDate("end-today").getTime();
const startOfTomorrow = getDate("start-tomorrow").getTime();
Expand Down Expand Up @@ -507,7 +504,7 @@ describe("WHEN a user applies a date filter", () => {
cy.get(ADD_BUTTON).realClick();
clickListItems(DATE_COLUMN, op);
cy.get(".vuuDatePopup .vuuIconButton").realClick();
cy.get(".saltCalendarDay-today:not(.saltCalendarDay-hidden)").realClick();
cy.get(`${VISIBLE_MONTH} .saltCalendarDay-today`).realClick();
cy.realPress("ArrowRight");
clickButton("Save");
waitUntilEditableLabelIsFocused();
Expand Down
1 change: 1 addition & 0 deletions vuu-ui/packages/vuu-ui-controls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@finos/vuu-utils": "0.0.26"
},
"peerDependencies": {
"@internationalized/date": "^3.0.0",
"clsx": "^2.0.0",
"react": ">=17.0.2",
"react-dom": ">=17.0.2"
Expand Down
1 change: 1 addition & 0 deletions vuu-ui/packages/vuu-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@finos/vuu-protocol-types": "0.0.26"
},
"peerDependencies": {
"@internationalized/date": "^3.0.0",
"react": ">=17.0.2",
"react-dom": ">=17.0.2"
},
Expand Down

0 comments on commit 8708916

Please sign in to comment.