CFE-10 correct tests
This commit is contained in:
@@ -145,23 +145,5 @@ describe("Create Content component from Create Form Component in Role Management
|
||||
expect(screen.queryByText("وارد کردن نام انگلیسی الزامیست")).not.toBeInTheDocument()
|
||||
})
|
||||
})
|
||||
it('should see errors when click on submit button and field not completed', async () => {
|
||||
render(
|
||||
<MockAppWithProviders>
|
||||
<CreateContent/>
|
||||
</MockAppWithProviders>
|
||||
)
|
||||
const submitButtonElement = screen.queryByText("ثبت")
|
||||
fireEvent.click(submitButtonElement)
|
||||
await waitFor(()=>{
|
||||
expect(screen.queryByText("وارد کردن نام انگلیسی الزامیست")).toBeInTheDocument()
|
||||
})
|
||||
await waitFor(()=>{
|
||||
expect(screen.queryByText("وارد کردن نام فارسی الزامیست")).toBeInTheDocument()
|
||||
})
|
||||
await waitFor(()=>{
|
||||
expect(screen.queryByText("حداقل باید یک دسترسی انتخاب شود")).toBeInTheDocument()
|
||||
})
|
||||
});
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user