-
Notifications
You must be signed in to change notification settings - Fork 15
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
PP 10451 handle selfservice 504 ledger gateway timeout #4150
PP 10451 handle selfservice 504 ledger gateway timeout #4150
Conversation
Code change is done, but the entire historic test to do with transaction listing will need converting
…, when thrown from the Ledger service during search. Rewriting Nock based 500 and 504 integration tests in Cypress.
Convert Nock 500 and 504 Integration Test scenarios to Cypress Tests
Writing test scenario as Cypress Tests
Writing test scenario as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic
Writing transaction search test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mock references and associated test scenarios from non-cypress integration tests.
Writing test scenario as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like some code from another story has slipped in here! Please remove it.
Logic looks basically fine and the tests are good but it looks like there’s some localised logic relating to extracting data from objects that does not look quite fine and I think some code could be removed to make it simpler.
Could you also look at squashing some of the commits together? I think we only really need one.
app/controllers/transactions/transaction-download.controller.js
Outdated
Show resolved
Hide resolved
This change is for the single service transaction search and not the all services functionality. Converting test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic. Download of transactions list by clicking the download link was de-scoped, so no tests were written for the download functionality.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments below including some stuff I din’t really think about the first time round (sorry about that).
There still seems o be stuff from another story here (specifically, files app/controllers/invite-user.controller.js
, app/controllers/invite-user.controller.test.js
, app/views/team-members/team-member-invite.njk
, test/integration/invite-users.controller.ft.test.js
and test/ui/invite-user.ui.test.js
). Please remove these changes from this PR.
This change is for the single service transaction search and not the all services functionality. Converting test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic. Download of transactions list by clicking the download link was de-scoped, so no tests were written for the download functionality.
This change is for the single service transaction search and not the all services functionality. Converting test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic. Download of transactions list by clicking the download link was de-scoped, so no tests were written for the download functionality.
This change is for the single service transaction search and not the all services functionality. Converting test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic. Download of transactions list by clicking the download link was de-scoped, so no tests were written for the download functionality. Removed files pulled in from master for MR clarity.
This change is for the single service transaction search and not the all services functionality. Converting test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic. Download of transactions list by clicking the download link was de-scoped, so no tests were written for the download functionality.
Convert Nock 500 and 504 Integration Test scenarios to Cypress Tests
Writing test scenario as Cypress Tests
Writing test scenario as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic
This change is for the single service transaction search and not the all services functionality. Converting test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic. Download of transactions list by clicking the download link was de-scoped, so no tests were written for the download functionality.
This change is for the single service transaction search and not the all services functionality. Converting test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic. Download of transactions list by clicking the download link was de-scoped, so no tests were written for the download functionality.
This change is for the single service transaction search and not the all services functionality. Converting test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic. Download of transactions list by clicking the download link was de-scoped, so no tests were written for the download functionality.
This change is for the single service transaction search and not the all services functionality. Converting test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic. Download of transactions list by clicking the download link was de-scoped, so no tests were written for the download functionality.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Can you squash all 19(!) commits into one with a nice commit message before merging?
WHAT
PP-10451 Handle gateway timeout error during transactions download.
This change is for the single service transaction search and not the all services functionality.
Converting test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic.
Download of transactions list by clicking the download link was de-scoped, so no tests were written for the download functionality.
HOW
Review exception handling of the transaction listing functionality and replicate the test scenarios for the associated changes.