We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents feac0df + 839a201 commit db56a58Copy full SHA for db56a58
packages/cypress/src/smartui.js
@@ -32,7 +32,7 @@ function smartuiSnapshot(name, options = {}) {
32
options
33
}, testType).then(resp => {
34
if (resp.status >= 200 && resp.status < 300) {
35
- if (resp.body.data?.warnings?.length) {
+ if (resp.body.data.warnings.length) {
36
resp.body.data.warnings.map(e => cy.task('log', log('warn', e)));
37
}
38
cylog('smartuiSnapshot', `Snapshot captured: ${name}`);
0 commit comments