feat: refs #8193 added user filter e2e in VnNotes
gitea/salix-front/pipeline/pr-dev Something is wrong with the build of this commit
Details
gitea/salix-front/pipeline/pr-dev Something is wrong with the build of this commit
Details
This commit is contained in:
parent
0d0433bec4
commit
94a66098c6
|
@ -79,10 +79,12 @@ const setWorkerObservations = (data) => {
|
|||
option-label="workerFk"
|
||||
option-value="workerFk"
|
||||
:options="filteredWorkers"
|
||||
@keyup.enter="searchFn"
|
||||
@update:modelValue="() => searchFn()"
|
||||
hide-selected
|
||||
dense
|
||||
filled
|
||||
data-cy="VnNotes-user-filter"
|
||||
>
|
||||
<template #option="{ opt, itemProps }">
|
||||
<QItem v-bind="itemProps" class="q-pa-xs row items-center">
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
/// <reference types="cypress" />
|
||||
describe('VnNotes', () => {
|
||||
const obervationType = 'Packager';
|
||||
const user = 'developer';
|
||||
beforeEach(() => {
|
||||
cy.viewport(1920, 1080);
|
||||
cy.login('developer');
|
||||
cy.visit('#/customer/1102/notes');
|
||||
});
|
||||
|
||||
it('should add and filter notes', () => {
|
||||
it('should add and filter notes by observation type', () => {
|
||||
cy.selectOption("[data-cy='VnNotes-observation-type']", obervationType);
|
||||
cy.dataCy('VnNotes-text-input').type('Test note {enter}');
|
||||
|
||||
|
@ -21,4 +22,16 @@ describe('VnNotes', () => {
|
|||
);
|
||||
});
|
||||
});
|
||||
|
||||
it('should filter notes by user', () => {
|
||||
cy.selectOption("[data-cy='VnNotes-user-filter']", user);
|
||||
cy.get('.column.full-width')
|
||||
.children()
|
||||
.each(($el) => {
|
||||
cy.dataCy('VnNotes-observation-type-badge').should(
|
||||
'include.text',
|
||||
obervationType,
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue