nodejs-docs-samples icon indicating copy to clipboard operation
nodejs-docs-samples copied to clipboard

retail: some tests failing, blocking PRs

Open glasnt opened this issue 5 months ago • 0 comments

In which file did you encounter the issue?

  • retail/interactive-tutorials/test/search-with-pagination.test.js
  • retail/interactive-tutorials/test/search-with-query-expansion-spec.test.js

Did you change the file? If so, how?

Comments only

Describe the issue

  72 passing (48s)
  2 failing

  1) Search with pagination
       Search with pagination run sample
         should contain next page token:
     AssertionError: expected 'Search start\nThe search operation re…' to match /Next page token/
      at Context.<anonymous> (interactive-tutorials/test/search-with-pagination.test.js:42:14)
      at process.processImmediate (node:internal/timers:483:21)

  2) Search with query expansion spec
       Search with query expansion spec sample result
         should contain expanded query:
     AssertionError: Search response does not contain query expansion info: expected null to be an object
      at Context.<anonymous> (interactive-tutorials/test/search-with-query-expansion-spec.test.js:105:15)
      at process.processImmediate (node:internal/timers:483:21)

Custard CI will run all tests in a particular subfolder, so these two tests are blocking merging of a number of comment only PRs:

  • #4117
  • #4118
  • #4119
  • #4120
  • #4121
  • #4124
  • #4125
  • #4126
  • #4127
  • #4128
  • #4129
  • #4130
  • #4131
  • #4131

This issue serves as a reference for use when disabling these failing tests to unblock these PRs.

glasnt avatar Jul 14 '25 04:07 glasnt