25 lines
800 B
JavaScript
25 lines
800 B
JavaScript
/// <reference types="cypress" />
|
|
describe('VnNotes', () => {
|
|
const obervationType = 'Packager';
|
|
beforeEach(() => {
|
|
cy.viewport(1920, 1080);
|
|
cy.login('developer');
|
|
cy.visit('#/customer/1102/notes');
|
|
});
|
|
|
|
it('should add and filter notes', () => {
|
|
cy.selectOption("[data-cy='VnNotes-observation-type']", obervationType);
|
|
cy.dataCy('VnNotes-text-input').type('Test note {enter}');
|
|
|
|
cy.selectOption("[data-cy='VnNotes-observation-type-filter']", obervationType);
|
|
cy.get('.column.full-width')
|
|
.children()
|
|
.each(($el) => {
|
|
cy.dataCy('VnNotes-observation-type-badge').should(
|
|
'include.text',
|
|
obervationType,
|
|
);
|
|
});
|
|
});
|
|
});
|