Skip to content

Commit

Permalink
Merge pull request #6 from spryker/bugfix/cc-33200-render-fixture-error
Browse files Browse the repository at this point in the history
Render dynamic fixture error body.
  • Loading branch information
dmiseev authored Mar 27, 2024
2 parents 895bd65 + 2ff5068 commit 2000c24
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,13 @@ Cypress.Commands.add('loadDynamicFixturesByPayload', (dynamicFixturesFilePath) =
},
body: operationRequestPayload,
timeout: 60000,
failOnStatusCode: false,
})
.then((response) => {
if (response.status === 500) {
throw new Error(response.body);
}

if (Array.isArray(response.body.data)) {
return response.body.data.reduce(
(acc: Record<string, unknown>, item: Record<string, { key: string; data: unknown }>) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ export class AgentDashboardPage extends MpPage {
const findParams = { query: params.query, expectedCount: 1 };

this.find(findParams).then(($merchantUserRow) => {
cy.wrap($merchantUserRow).find(this.repository.getAssistUserButtonSelector()).should('exist').click();
cy.wrap($merchantUserRow)
.find(this.repository.getAssistUserButtonSelector())
.should('exist')
.click({ force: true });
this.repository.getModalConfirmButton().click();
});
};
Expand Down

0 comments on commit 2000c24

Please sign in to comment.