Skip to content

Commit

Permalink
Merge pull request #1104 from catenax-ng/chore/xxx-fix-cypress-bug
Browse files Browse the repository at this point in the history
chore(e2e): fix failing tests
  • Loading branch information
ds-mwesener authored Mar 22, 2024
2 parents f1e753d + 3970d61 commit 5aed982
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/cypress/support/step_definitions/admin-contracts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Then, When} from '@badeball/cypress-cucumber-preprocessor';
import {AdminPage, AdminViewTab} from '../../integration/pages/AdminPage';
import { Then, When } from '@badeball/cypress-cucumber-preprocessor';
import { AdminPage, AdminViewTab } from '../../integration/pages/AdminPage';

let currentContractId: string;

Expand Down Expand Up @@ -50,8 +50,8 @@ Then('exported contracts csv file is existing', function() {

Then('exported csv file has correct content', function() {
AdminPage.getExportedContractsFileData().then((data) => {
let expectedData = "contractId,counterpartyAddress,creationDate,endDate,state\n" + currentContractId.trim().replace(/\n/g,'') + ",https://trace-x-edc-e2e-a.dev.demo.catena-x.net/api/v1/dsp,Mon Mar 18 2024,Thu Jan 01 1970,FINALIZED";
expect(data).to.equal(expectedData);
let expectedData = currentContractId.trim().replace(/\n/g,'');
expect(data).to.contain(expectedData);
});

});

0 comments on commit 5aed982

Please sign in to comment.