Skip to content

Commit 64d42d4

Browse files
committed
test: fix expected amount of tests for cucumber due to latest PR changes
1 parent 3d0302e commit 64d42d4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cypress/e2e/results/main.cy.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('Allure results', () => {
1111
it(`should contain suite results for ${mode}`, () => {
1212
const { suites, tests } = result[mode];
1313
expect(suites).to.have.length(1);
14-
expect(suites[0].children).to.have.length(mode === 'basic' ? 4 : 1);
14+
expect(suites[0].children).to.have.length(mode === 'basic' ? 4 : 3);
1515
expect(
1616
tests.every((t) =>
1717
suites.find((s) => s.children.includes(t.uuid))
@@ -66,7 +66,7 @@ describe('Allure results', () => {
6666

6767
it(`should contain test results for ${mode}`, () => {
6868
expect(result[mode].tests).to.have.length(
69-
mode === 'cucumber' ? 1 : 4
69+
mode === 'cucumber' ? 3 : 4
7070
);
7171
const { tests } = result[mode];
7272
tests.forEach((t) => {
@@ -140,6 +140,8 @@ describe('Cucumber specific', () => {
140140
const { cucumber } = result;
141141
const [test] = cucumber.tests;
142142

143+
console.log(test.labels);
144+
143145
expect(test.labels).to.have.length(expectedLabels('cucumber').length);
144146
expect(test.labels).to.have.deep.members(expectedLabels('cucumber'));
145147
expect(test.links).to.have.length(expectedLinks('cucumber').length);

0 commit comments

Comments
 (0)