suitest-js-api 3.2.3 → 3.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -219,10 +219,17 @@ const applyNegation = (comparator, data) => {
219
219
  */
220
220
  const applyUntilCondition = (socketMessage, data) => {
221
221
  if (data.until) {
222
- return {
222
+ const newSocketMessage = {
223
223
  ...socketMessage,
224
224
  condition: data.until,
225
225
  };
226
+
227
+ // need negateCondition is mandatory for snippet command
228
+ if (data.type === 'runSnippet') {
229
+ newSocketMessage.negateCondition = false;
230
+ }
231
+
232
+ return newSocketMessage;
226
233
  }
227
234
 
228
235
  return socketMessage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suitest-js-api",
3
- "version": "3.2.3",
3
+ "version": "3.2.4",
4
4
  "main": "index.js",
5
5
  "repository": "git@github.com:SuitestAutomation/suitest-js-api.git",
6
6
  "author": "Suitest <hello@suite.st>",