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

(-)a/t/cypress/integration/InfiniteScrollSelect_spec.ts (-4 / +6 lines)
Lines 84-92 describe("Infinite scroll", () => { Link Here
84
                "X-Base-Total-Count": "20",
84
                "X-Base-Total-Count": "20",
85
                "X-Total-Count": "20",
85
                "X-Total-Count": "20",
86
            },
86
            },
87
        });
87
        }).as("getPageTwo");
88
        // Scroll the dropdown
88
        // Scroll the dropdown
89
        cy.get(".vs__dropdown-menu").scrollTo("bottom");
89
        cy.get(".vs__dropdown-menu").scrollTo("bottom");
90
        cy.wait("@getPageTwo");
90
        cy.get("@options").should("have.length", 40);
91
        cy.get("@options").should("have.length", 40);
91
92
92
        cy.intercept("GET", "/api/v1/erm/licenses*", {
93
        cy.intercept("GET", "/api/v1/erm/licenses*", {
Lines 96-104 describe("Infinite scroll", () => { Link Here
96
                "X-Base-Total-Count": "20",
97
                "X-Base-Total-Count": "20",
97
                "X-Total-Count": "20",
98
                "X-Total-Count": "20",
98
            },
99
            },
99
        });
100
        }).as("getPageThree");
100
        // Scroll the dropdown again
101
        // Scroll the dropdown again
101
        cy.get(".vs__dropdown-menu").scrollTo("bottom");
102
        cy.get(".vs__dropdown-menu").scrollTo("bottom");
103
        cy.wait("@getPageThree");
102
        cy.get("@options").should("have.length", 60);
104
        cy.get("@options").should("have.length", 60);
103
    });
105
    });
104
106
Lines 208-216 describe("Infinite scroll", () => { Link Here
208
                "X-Base-Total-Count": "20",
210
                "X-Base-Total-Count": "20",
209
                "X-Total-Count": "20",
211
                "X-Total-Count": "20",
210
            },
212
            },
211
        });
213
        }).as("getPageTwo");
212
        // Scroll the dropdown
214
        // Scroll the dropdown
213
        cy.get(".vs__dropdown-menu").scrollTo("bottom");
215
        cy.get(".vs__dropdown-menu").scrollTo("bottom");
216
        cy.wait("@getPageTwo");
214
217
215
        cy.intercept("GET", "/api/v1/erm/licenses*", {
218
        cy.intercept("GET", "/api/v1/erm/licenses*", {
216
            statusCode: 200,
219
            statusCode: 200,
217
- 

Return to bug 32474