View | Details | Raw Unified | Return to bug 32474
Collapse All | Expand All

(-)a/t/cypress/integration/ERM/Agreements_spec.ts (-18 / +9 lines)
Lines 9-14 const dates = { Link Here
9
    tomorrow_us: dayjs().add(1, "day").format("MM/DD/YYYY"),
9
    tomorrow_us: dayjs().add(1, "day").format("MM/DD/YYYY"),
10
};
10
};
11
function get_agreement() {
11
function get_agreement() {
12
    let licenses = get_licenses_to_relate();
12
    return {
13
    return {
13
        agreement_id: 1,
14
        agreement_id: 1,
14
        closure_reason: "",
15
        closure_reason: "",
Lines 39-52 function get_agreement() { Link Here
39
            {
40
            {
40
                agreement_id: 1,
41
                agreement_id: 1,
41
                agreement_license_id: 3,
42
                agreement_license_id: 3,
42
                license: {
43
                license: licenses[0],
43
                    description: "license description",
44
                license_id: licenses[0].license_id,
44
                    license_id: 1,
45
                    name: "license name",
46
                    status: "expired",
47
                    type: "alliance",
48
                },
49
                license_id: 1,
50
                notes: "license notes",
45
                notes: "license notes",
51
                physical_location: "cupboard",
46
                physical_location: "cupboard",
52
                status: "controlling",
47
                status: "controlling",
Lines 55-68 function get_agreement() { Link Here
55
            {
50
            {
56
                agreement_id: 1,
51
                agreement_id: 1,
57
                agreement_license_id: 4,
52
                agreement_license_id: 4,
58
                license: {
53
                license: licenses[1],
59
                    description: "second license description",
54
                license_id: licenses[1].license_id,
60
                    license_id: 2,
61
                    name: "second license name",
62
                    status: "expired",
63
                    type: "alliance",
64
                },
65
                license_id: 2,
66
                notes: "second license notes",
55
                notes: "second license notes",
67
                physical_location: "cupboard",
56
                physical_location: "cupboard",
68
                status: "future",
57
                status: "future",
Lines 101-108 function get_licenses_to_relate() { Link Here
101
    return [
90
    return [
102
        {
91
        {
103
            license_id: 1,
92
            license_id: 1,
104
            description: "a license",
93
            description: "license description",
94
            license_id: 1,
105
            name: "first license name",
95
            name: "first license name",
96
            status: "expired",
97
            type: "alliance",
106
        },
98
        },
107
        {
99
        {
108
            license_id: 2,
100
            license_id: 2,
109
- 

Return to bug 32474