Skip to content

Commit

Permalink
fixed test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
akanshaaa19 committed Jun 10, 2024
1 parent 79cf7f2 commit 1b53acd
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ vi.mock('common/notification', async (importOriginal) => {
test('it should have add contact to collection dialog box ', async () => {
const { getByText, getByTestId } = render(addContacts);

expect(getByTestId('loader')).toBeInTheDocument();

await waitFor(() => {
expect(getByTestId('autocomplete-element')).toBeInTheDocument();
});
Expand All @@ -58,8 +56,6 @@ test('it should have add contact to collection dialog box ', async () => {
test('click on cancel button ', async () => {
const { getByText, getByTestId } = render(addContacts);

expect(getByTestId('loader')).toBeInTheDocument();

await waitFor(() => {
expect(getByTestId('autocomplete-element')).toBeInTheDocument();
});
Expand All @@ -72,8 +68,6 @@ test('click on cancel button ', async () => {
test('save without changing anything', async () => {
const { getByText, getByTestId } = render(addContacts);

expect(getByTestId('loader')).toBeInTheDocument();

await waitFor(() => {
expect(getByTestId('autocomplete-element')).toBeInTheDocument();
});
Expand All @@ -88,8 +82,6 @@ test('save without changing anything', async () => {
test('change value in dialog box', async () => {
const { getByTestId, getAllByTestId } = render(addContacts);

expect(getByTestId('loader')).toBeInTheDocument();

await waitFor(() => {
expect(getByTestId('autocomplete-element')).toBeInTheDocument();
});
Expand All @@ -108,8 +100,6 @@ test('change value in dialog box', async () => {
test('should add contact to collection', async () => {
const { getByTestId, getByText } = render(addContacts);

expect(getByTestId('loader')).toBeInTheDocument();

await waitFor(() => {
expect(getByTestId('autocomplete-element')).toBeInTheDocument();
});
Expand Down Expand Up @@ -142,8 +132,6 @@ const addGroups = (
test('it should have "add group to collection" dialog box ', async () => {
const { getByText, getByTestId } = render(addGroups);

expect(getByTestId('loader')).toBeInTheDocument();

await waitFor(() => {
expect(getByTestId('autocomplete-element')).toBeInTheDocument();
});
Expand All @@ -154,8 +142,6 @@ test('it should have "add group to collection" dialog box ', async () => {
test('should add whatsapp group to collection', async () => {
const { getByTestId, getByText } = render(addGroups);

expect(getByTestId('loader')).toBeInTheDocument();

await waitFor(() => {
expect(getByTestId('autocomplete-element')).toBeInTheDocument();
});
Expand Down

0 comments on commit 1b53acd

Please sign in to comment.