Skip to content

Commit

Permalink
Fix syncCheckoutUICustom testcase (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
Syed-Vtex authored Jun 2, 2023
1 parent 1819c65 commit 9f0c3c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## [2.4.5] - 2023-05-10

### Changed
- Fix syncCheckoutUICustom testcase

### Changed
- Updated Shipping Information Regex to not do strict match

Expand Down
7 changes: 4 additions & 3 deletions cypress-shared/support/common/testcase.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,15 +298,16 @@ export function syncCheckoutUICustom() {
const GRAPHQL_MUTATION =
'mutation' +
'($email: String, $workspace: String, $layout: CustomFields, $javascript: String, $css: String, $javascriptActive: Boolean, $cssActive: Boolean, $colors: CustomFields)' +
'{saveChanges (email: $email, workspace: $workspace, layout: $layout, javascript: $javascript, css: $css, javascriptActive: $javascriptActive, cssActive: $cssActive, colors: $colors) @context(provider: "vtex.checkout-ui-custom@*.x")}'
'{saveChanges (email: $email, workspace: $workspace, layout: $layout, javascript: $javascript, css: $css, javascriptActive: $javascriptActive, cssActive: $cssActive, colors: $colors) @context(provider: "vtex.checkout-ui-custom")}'

cy.callGraphqlAndAddLogs({
url: CUSTOM_URL,
query: GRAPHQL_MUTATION,
variables: getConfiguration(WORKSPACE),
}).then(({ body }) => {
expect(body).to.not.have.own.property('errors')
expect(body.data.saveChanges).to.include('DocumentId')
})
.its('body.data.saveChanges', { timeout: 5000 })
.should('contain', 'DocumentId')
}
)
}
Expand Down

0 comments on commit 9f0c3c6

Please sign in to comment.