Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regex matching inside "writeIntoLookupListField" to match search modals #276

TheBestPessimist opened this issue Aug 5, 2019 · 0 comments


Copy link

commented Aug 5, 2019

Test shall include:

  • Customer Fixtures to use: (if needed)
  • What to test
  • Expectation for the test to be successful

Todo for developer (besides coding)

  • Always make sure the issue is in the correct project lane
  • run your test in jenkins e2e on a vanilla db
  • jenkins console URL / cypress dashboard URL to the successful test suite run (not just yours)
  • get it integrated into master
    • (pull request URL)

All Flags are ticked? Congratulations, you have delivered!


Fix regex matching inside writeIntoLookupListField to match search modals. I expect it to work with the regexp below!

the request: GET http://localhost:8080/rest/api/documentView/540189/540189-C/filter/default/field/M_Product_ID/typeahead?query=Product_05T11_04_26_553
cy.writeIntoLookupListField('M_Product_ID', productName, productName, false, false, '/rest/api/documentView/.*/filter/default/field/');

But it seems it waits for a PATCH instead.
If PATCH is changed to GET inside writeIntoLookupListField, it still won't work but this time errors out in cy.waitForFieldValue.

Code example:

it('Visit HU Editor, filter for the product, and expect a single row', function() {
    cy.writeIntoLookupListField('M_Product_ID', productName, productName, false, false, '/rest/api/documentView/.*/filter/default/field/');


Related issue: #248

@TheBestPessimist TheBestPessimist added this to To do in e2e via automation Aug 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.