Skip to content

Commit

Permalink
removing wrong test
Browse files Browse the repository at this point in the history
  • Loading branch information
xoscar committed May 12, 2022
1 parent 8e2ef6c commit cfd3859
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion web/cypress/integration/Home/CreateTest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
3 changes: 1 addition & 2 deletions web/cypress/integration/TestDetails/ShowTestDetails.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion web/cypress/integration/utils/Common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down
7 changes: 0 additions & 7 deletions web/src/constants/Test.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit cfd3859

Please sign in to comment.