From b0d51199c5f473e8934e344ba59937c25e086b7c Mon Sep 17 00:00:00 2001 From: dzonidoo Date: Wed, 17 Jul 2024 20:26:41 +0200 Subject: [PATCH] fixed failed unit tests --- scripts/apps/vocabularies/tests/vocabularies.spec.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/apps/vocabularies/tests/vocabularies.spec.tsx b/scripts/apps/vocabularies/tests/vocabularies.spec.tsx index b6e6f945ee..d683af7a87 100644 --- a/scripts/apps/vocabularies/tests/vocabularies.spec.tsx +++ b/scripts/apps/vocabularies/tests/vocabularies.spec.tsx @@ -2,7 +2,7 @@ import React from 'react'; import {mount} from 'enzyme'; import {noop} from 'lodash'; import {VocabularyItemsViewEdit} from '../components/VocabularyItemsViewEdit'; -import {s} from 'core/helpers/testUtils'; +import {s} from './../../../../e2e/client/playwright/utils'; const getPromise = () => Promise.resolve({}); @@ -190,13 +190,13 @@ describe('vocabularies', () => { wrapper.update(); - wrapper.find(s(['vocabulary-items-view-edit', 'field--name'])) + wrapper.find(s('vocabulary-items-view-edit', 'vocabulary-item-field=name')) .simulate('change', {target: {value: 'abc'}}); setTimeout(() => { expect(onSetItemValidSpy).toHaveBeenCalledWith(false); - wrapper.find(s(['vocabulary-items-view-edit', 'field--qcode'])) + wrapper.find(s('vocabulary-items-view-edit', 'vocabulary-item-field=qcode')) .simulate('change', {target: {value: 'abc'}}); setTimeout(() => { @@ -229,7 +229,7 @@ describe('vocabularies', () => { expect(instance.getItemsForSaving().length).toBe(1); - wrapper.find(s(['vocabulary-items-view-edit', 'remove'])) + wrapper.find(s('vocabulary-items-view-edit', 'remove')) .simulate('click'); expect(instance.getItemsForSaving().length).toBe(0);