generated from mmisty/cypress-grep-example
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patha02c6d65fd15c598.ts
36 lines (32 loc) · 1.27 KB
/
a02c6d65fd15c598.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { visitHtml } from '../../support/helper';
import { basename } from '@mmisty/cypress-allure-adapter/common';
describe('interface', () => {
describe('other', () => {
Cypress.Allure.on('test:started', () => {
Cypress.Allure.epic('interface');
Cypress.Allure.feature('status');
});
Cypress.Allure.on('test:ended', () => {
Cypress.Allure.fileAttachment('test-file-' + basename(__filename), __filename, 'text/plain');
});
beforeEach(() => {
visitHtml();
});
it('0901 should have other fields', () => {
cy.allure().severity('critical');
cy.allure().owner('TP');
cy.allure().lead('AP');
cy.allure().addDescriptionHtml('<b>test description line 1</br></b>');
cy.allure().addDescriptionHtml('<b>test description line 2</br></b>');
cy.allure().parameter('var A', 'value of A');
cy.allure().allureId('TCID1');
cy.allure().browser('Chrome');
cy.allure().device('Device MAc');
cy.allure().language('javascript');
cy.allure().layer('E2E');
cy.allure().os('MAC OS');
cy.allure().testDetails({ message: 'This is updated status message for test' });
cy.allure().attachment('hello.json', JSON.stringify({ a: 'hello world' }), 'application/json');
});
});
});