Skip to content

Commit

Permalink
[minor] update packages with added isOwnTag (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmisty authored Jan 10, 2025
1 parent 32f0286 commit d90c085
Show file tree
Hide file tree
Showing 7 changed files with 575 additions and 551 deletions.
4 changes: 2 additions & 2 deletions integration/e2e/example/test-root.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ it(`test ${tag('P1', 'critical')}`, { tags: [tag('issue', 'example of info')] },
const infoForIssue = this.test?.tags?.find(t => t.tag === '@issue');
const infoForP1 = this.test?.tags?.find(t => t.tag === '@P1');

expect(infoForIssue).to.deep.eq({ tag: '@issue', info: ['example of info'] });
expect(infoForP1).to.deep.eq({ tag: '@P1', info: ['critical'] });
expect(infoForIssue).to.deep.eq({ tag: '@issue', info: ['example of info'], isOwnTag: true });
expect(infoForP1).to.deep.eq({ tag: '@P1', info: ['critical'], isOwnTag: true });
cy.log(`infoForIssue: **${infoForIssue?.info?.join('')}**`);
cy.log(`infoForP1: **${infoForP1?.info?.join('')}**`);
});
8 changes: 4 additions & 4 deletions integration/e2e/regression/several-similar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ describe('suite', () => {
it('test @issue("123") @issue("456")', function () {
expect(this.test?.tags).to.have.length(2);
expect(this.test?.tags).deep.eq([
{ tag: '@issue', info: ['123'] },
{ tag: '@issue', info: ['456'] },
{ tag: '@issue', info: ['123'], isOwnTag: true },
{ tag: '@issue', info: ['456'], isOwnTag: true },
]);
});

it('test with several args @issue("123","description") @issue("456")', function () {
expect(this.test?.tags).to.have.length(2);
expect(this.test?.tags).deep.eq([
{ tag: '@issue', info: ['123', 'description'] },
{ tag: '@issue', info: ['456'] },
{ tag: '@issue', info: ['123', 'description'], isOwnTag: true },
{ tag: '@issue', info: ['456'], isOwnTag: true },
]);
});
});
2 changes: 1 addition & 1 deletion integration/e2e/regression/suite-info-inline.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe(`info should be in tags object for test (inline tag) ${tag('P1', 'criti
const infoForP2 = this.test?.tags?.find(t => t.tag === '@P2');

expect(infoForP1).to.deep.eq({ tag: '@P1', info: ['critical'] });
expect(infoForP2).to.deep.eq({ tag: '@P2', info: ['major'] });
expect(infoForP2).to.deep.eq({ tag: '@P2', info: ['major'], isOwnTag: true });
cy.log(`infoForP1: **${infoForP1?.info?.join('')}**`);
cy.log(`infoForP2: **${infoForP2?.info?.join('')}**`);
});
Expand Down
2 changes: 1 addition & 1 deletion integration/e2e/regression/suite-info.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('info should be in tags object major test ', { tags: [tag('P1', 'critic
const infoForP2 = this.test?.tags?.find(t => t.tag === '@P2');

expect(infoForP1).to.deep.eq({ tag: '@P1', info: ['critical'] });
expect(infoForP2).to.deep.eq({ tag: '@P2', info: ['major'] });
expect(infoForP2).to.deep.eq({ tag: '@P2', info: ['major'], isOwnTag: true });
cy.log(`infoForP1: **${infoForP1?.info?.join('')}**`);
cy.log(`infoForP2: **${infoForP2?.info?.join('')}**`);
});
Expand Down
Loading

0 comments on commit d90c085

Please sign in to comment.