Bugzilla – Attachment 161724 Details for
Bug 32474
Implement infinite scroll in vue-select
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32474: (follow-up): Tell the tests to wait for the intercepted request responses
Bug-32474-follow-up-Tell-the-tests-to-wait-for-the.patch (text/plain), 1.88 KB, created by
Matt Blenkinsop
on 2024-02-02 10:30:14 UTC
(
hide
)
Description:
Bug 32474: (follow-up): Tell the tests to wait for the intercepted request responses
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2024-02-02 10:30:14 UTC
Size:
1.88 KB
patch
obsolete
>From fa649574b033431619e2a13526f1a088f68f8273 Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >Date: Fri, 2 Feb 2024 10:29:06 +0000 >Subject: [PATCH] Bug 32474: (follow-up): Tell the tests to wait for the > intercepted request responses > >--- > t/cypress/integration/InfiniteScrollSelect_spec.ts | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > >diff --git a/t/cypress/integration/InfiniteScrollSelect_spec.ts b/t/cypress/integration/InfiniteScrollSelect_spec.ts >index 1a5295aeee..526f692b87 100644 >--- a/t/cypress/integration/InfiniteScrollSelect_spec.ts >+++ b/t/cypress/integration/InfiniteScrollSelect_spec.ts >@@ -84,9 +84,10 @@ describe("Infinite scroll", () => { > "X-Base-Total-Count": "20", > "X-Total-Count": "20", > }, >- }); >+ }).as("getPageTwo"); > // Scroll the dropdown > cy.get(".vs__dropdown-menu").scrollTo("bottom"); >+ cy.wait("@getPageTwo"); > cy.get("@options").should("have.length", 40); > > cy.intercept("GET", "/api/v1/erm/licenses*", { >@@ -96,9 +97,10 @@ describe("Infinite scroll", () => { > "X-Base-Total-Count": "20", > "X-Total-Count": "20", > }, >- }); >+ }).as("getPageThree"); > // Scroll the dropdown again > cy.get(".vs__dropdown-menu").scrollTo("bottom"); >+ cy.wait("@getPageThree"); > cy.get("@options").should("have.length", 60); > }); > >@@ -208,9 +210,10 @@ describe("Infinite scroll", () => { > "X-Base-Total-Count": "20", > "X-Total-Count": "20", > }, >- }); >+ }).as("getPageTwo"); > // Scroll the dropdown > cy.get(".vs__dropdown-menu").scrollTo("bottom"); >+ cy.wait("@getPageTwo"); > > cy.intercept("GET", "/api/v1/erm/licenses*", { > statusCode: 200, >-- >2.37.1 (Apple Git-137.1)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32474
:
144614
|
144719
|
144720
|
145143
|
145144
|
145154
|
150030
|
150031
|
150282
|
150283
|
150284
|
150287
|
150305
|
150308
|
150309
|
153110
|
153111
|
153112
|
153113
|
154094
|
156410
|
156470
|
156471
|
156472
|
156473
|
156474
|
156475
|
156476
|
156477
|
156478
|
156479
|
156481
|
156482
|
156483
|
156504
|
156505
|
159327
|
159328
|
159329
|
159330
|
159340
|
159343
|
159386
|
159389
|
159395
|
159397
|
159398
|
159399
|
159400
|
159401
|
159402
|
159403
|
159404
|
159405
|
159406
|
159407
| 161724