diff --git a/cypress.config.ts b/cypress.config.ts index 36de38c6..8a8a9204 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -10,7 +10,7 @@ const protocolMap: { [key: string]: 'http' | 'https' } = { http: 'http', https: 'https', }; -const protocol = protocolMap[getEnvVar('ENV_PROTOCOL', 'SPRYKER_SSL_ENABLE')]; +const protocol = protocolMap[getEnvVar('ENV_PROTOCOL', 'SPRYKER_SSL_ENABLED')]; const backofficeHost = getEnvVar('ENV_BACKOFFICE_HOST', 'SPRYKER_BE_HOST'); const merchantPortalHost = getEnvVar('ENV_MERCHANT_PORTAL_HOST', 'SPRYKER_MP_HOST'); const glueBackendHost = getEnvVar('ENV_GLUE_BACKEND_HOST', 'SPRYKER_GLUE_BACKEND_HOST'); @@ -39,8 +39,8 @@ export default defineConfig({ openMode: 0, }, }, - viewportWidth: parseInt(process.env.VIEWPORT_WIDGTH ?? '1000', 10), - viewportHeight: parseInt(process.env.VIEWPORT_HEIGHT ?? '660', 10), + viewportWidth: parseInt(process.env.VIEWPORT_WIDGTH ?? '1920', 10), + viewportHeight: parseInt(process.env.VIEWPORT_HEIGHT ?? '1080', 10), }); function getEnvVar(primary: string, fallback: string): string { diff --git a/cypress/support/pages/backoffice/backoffice-page.ts b/cypress/support/pages/backoffice/backoffice-page.ts index 06b422cd..e510a6f1 100644 --- a/cypress/support/pages/backoffice/backoffice-page.ts +++ b/cypress/support/pages/backoffice/backoffice-page.ts @@ -14,7 +14,12 @@ export class BackofficePage extends AbstractPage { const interceptAlias = this.faker.string.uuid(); cy.intercept('GET', params.url).as(interceptAlias); - cy.wait(`@${interceptAlias}`).its('response.body.recordsFiltered').should('eq', expectedCount); + cy.wait(`@${interceptAlias}`) + .its('response.body.recordsFiltered') + .should((total) => { + const valueToBeAtMost = expectedCount + Cypress.currentRetry; + assert.isAtMost(total, valueToBeAtMost); + }); }; } diff --git a/docker-compose.cypress.yml b/docker-compose.cypress.yml index b71c93ac..be50df0d 100644 --- a/docker-compose.cypress.yml +++ b/docker-compose.cypress.yml @@ -9,7 +9,6 @@ services: env_file: - ${DEPLOYMENT_PATH}/env/cli/testing.env # depends on application setup - ${DEPLOYMENT_PATH}/env/cli/de.env - - ${DEPLOYMENT_PATH}/terraform/cli/de.env labels: 'spryker.app.name': cypress-tests 'spryker.app.type': cypress-tests