mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-02 16:43:13 +00:00
chore(workorders): keep ticket keys out of test names
The review contract bars Jira keys in source comments and test names; ticket identity lives in the PR, commit and branch. The previous commit cleaned the source files; this strips the six (SH-391) suffixes the branch added to test names and a test comment, keeping the behavioural wording.
This commit is contained in:
parent
c1fd8f6d88
commit
62e38e4b81
4 changed files with 6 additions and 6 deletions
|
|
@ -33,7 +33,7 @@ function openSection() {
|
|||
}
|
||||
}
|
||||
|
||||
describe("Advanced Filters date range (SH-391)", () => {
|
||||
describe("Advanced Filters date range", () => {
|
||||
it("starts with no range selected, so the search spans every week", () => {
|
||||
openSection();
|
||||
|
||||
|
|
|
|||
|
|
@ -420,7 +420,7 @@ describe("workOrdersApi.searchBoard", () => {
|
|||
});
|
||||
});
|
||||
|
||||
/** A WO# lookup spans every week and undated rows (SH-391). */
|
||||
/** A WO# lookup spans every week and undated rows. */
|
||||
const ALL_WEEKS_SEARCH = {
|
||||
datePreset: "Custom",
|
||||
dateFrom: "2000-01-01",
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ describe("toBoardSearchQueryParams", () => {
|
|||
expect(thisWeek.dateTo).toBeUndefined();
|
||||
});
|
||||
|
||||
it("narrows strictly for every selected range, This week included (SH-391)", () => {
|
||||
it("narrows strictly for every selected range, This week included", () => {
|
||||
for (const dateRange of ["this-week", "last-week", "last-3-months", "custom"] as const) {
|
||||
const params = toBoardSearchQueryParams({
|
||||
filters: {
|
||||
|
|
@ -151,7 +151,7 @@ describe("toBoardSearchQueryParams", () => {
|
|||
}
|
||||
});
|
||||
|
||||
it("searches every week, undated rows included, when no range is selected (SH-391)", () => {
|
||||
it("searches every week, undated rows included, when no range is selected", () => {
|
||||
const params = toBoardSearchQueryParams({
|
||||
filters: { ...EMPTY_ADVANCED_FILTERS, dispatchers: new Set(["__unassigned__"]) },
|
||||
});
|
||||
|
|
@ -165,7 +165,7 @@ describe("toBoardSearchQueryParams", () => {
|
|||
});
|
||||
});
|
||||
|
||||
it("keeps undated rows in the pinned Unassigned queue (SH-391)", () => {
|
||||
it("keeps undated rows in the pinned Unassigned queue", () => {
|
||||
expect(toUnassignedQueueQueryParams().includeDateless).toBe(true);
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -455,7 +455,7 @@ describe("matchesAdvancedFilters", () => {
|
|||
expect(matchesAdvancedFilters(undatedAssigned, filters)).toBe(true);
|
||||
});
|
||||
|
||||
it("matches a range the same way the board search does (SH-391)", () => {
|
||||
it("matches a range the same way the board search does", () => {
|
||||
const filters = {
|
||||
...EMPTY_ADVANCED_FILTERS,
|
||||
dateRange: "custom" as const,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue