From 9b0ae6164ead314685e33b54dc0fa47f3472163e Mon Sep 17 00:00:00 2001 From: Jannis Leifeld Date: Thu, 16 Nov 2023 11:11:18 +0100 Subject: [PATCH] NEXT-30405 - fix flaky typeAndCheckSearchField command --- cypress/support/CHANGELOG.md | 5 +++++ cypress/support/commands/commands.js | 1 + package.json | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cypress/support/CHANGELOG.md b/cypress/support/CHANGELOG.md index 0b84d35..72d9c2f 100644 --- a/cypress/support/CHANGELOG.md +++ b/cypress/support/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to this project will be documented in this file. +## [7.0.6] - 16.11.2023 + +### Changed +- Added auto close to the `typeAndCheckSearchField` command + ## [7.0.3] - 01.02.2023 ### Added diff --git a/cypress/support/commands/commands.js b/cypress/support/commands/commands.js index 7197366..7dd248f 100644 --- a/cypress/support/commands/commands.js +++ b/cypress/support/commands/commands.js @@ -475,6 +475,7 @@ Cypress.Commands.add('typeAndCheckSearchField', { cy.wait('@searchResultCall') .its('response.statusCode').should('equal', 200); cy.url().should('include', encodeURI(value)); + cy.wrap(subject).type('{esc}'); }); /** diff --git a/package.json b/package.json index 3cf9643..73bef5e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@shopware-ag/e2e-testsuite-platform", - "version": "7.0.5", + "version": "7.0.6", "description": "E2E Testsuite for Shopware 6 using Cypress.js", "keywords": [ "e2e",