diff --git a/web/cypress/integration/Home/CreateTest.spec.ts b/web/cypress/integration/Home/CreateTest.spec.ts index c0de5df975..53ee8db77b 100644 --- a/web/cypress/integration/Home/CreateTest.spec.ts +++ b/web/cypress/integration/Home/CreateTest.spec.ts @@ -63,7 +63,7 @@ describe('Create test', () => { }); it('should create a POST test from an example', () => { - const [, , {name, description}] = DemoTestExampleList; + const [, {name, description}] = DemoTestExampleList; const $form = openCreateTestModal(); $form.get('[data-cy=example-button]').click(); diff --git a/web/cypress/integration/TestDetails/ShowTestDetails.spec.ts b/web/cypress/integration/TestDetails/ShowTestDetails.spec.ts index bd13228158..d239ec1a45 100644 --- a/web/cypress/integration/TestDetails/ShowTestDetails.spec.ts +++ b/web/cypress/integration/TestDetails/ShowTestDetails.spec.ts @@ -40,8 +40,7 @@ describe('Show test details', () => { cy.location().then(({pathname}) => { const testRunResultId = getResultId(pathname); - cy.wait(2000); - cy.get('[data-cy=test-run-result-status]').should('have.text', 'Test status:Awaiting trace'); + cy.get('[data-cy=test-run-result-status]', { timeout: 2000 }).should('have.text', 'Test status:Awaiting trace'); cy.wait(2000); cy.get('[data-cy=test-run-result-status]').should('have.text', 'Test status:Finished'); cy.get('[data-cy=test-header-back-button]').click(); diff --git a/web/cypress/integration/utils/Common.ts b/web/cypress/integration/utils/Common.ts index 527f7cc1b3..0fe159054a 100644 --- a/web/cypress/integration/utils/Common.ts +++ b/web/cypress/integration/utils/Common.ts @@ -3,7 +3,7 @@ import {DemoTestExampleList} from '../../../src/constants/Test.constants'; Cypress.on('uncaught:exception', err => !err.message.includes('ResizeObserver loop limit exceeded')); -export const [, {name, description}] = DemoTestExampleList; +export const [{name, description}] = DemoTestExampleList; // eslint-disable-next-line import/no-mutable-exports export let testId = ''; diff --git a/web/src/constants/Test.constants.ts b/web/src/constants/Test.constants.ts index 0fa6f28a40..b700129e7d 100644 --- a/web/src/constants/Test.constants.ts +++ b/web/src/constants/Test.constants.ts @@ -9,13 +9,6 @@ interface DemoTestExample { } export const DemoTestExampleList: DemoTestExample[] = [ - { - name: 'Shopping app', - url: 'http://shop/buy', - method: HTTP_METHOD.GET, - body: '', - description: 'Generic get', - }, { name: 'Pokemon - List', url: 'http://demo-pokemon-api.demo.svc.cluster.local/pokemon?take=20&skip=0',