Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ahmed/DAPI-819/chore--code-improvement #186

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ mockUseLogout.mockImplementation(() => {
};
});

describe('HeroHeader', () => {
describe.skip('HeroHeader', () => {
beforeEach(() => {
mockUseAuthContext.mockImplementation(() => {
return {
Expand All @@ -64,13 +64,13 @@ describe('HeroHeader', () => {
jest.clearAllMocks();
});

it.skip('Should render current account ', () => {
it('Should render current account ', () => {
const current_account_button = screen.getByRole('button', { name: /CR111111/i });

expect(current_account_button).toBeInTheDocument();
});

it.skip('Should call do logout on logout button click', async () => {
it('Should call do logout on logout button click', async () => {
const current_account_button = await screen.findByRole('button', { name: /CR111111/i });

await act(async () => {
Expand All @@ -86,7 +86,7 @@ describe('HeroHeader', () => {
expect(mockLogout).toHaveBeenCalledTimes(1);
});

it.skip('should be able to close the dropdown by clicking on the arrow', async () => {
it('should be able to close the dropdown by clicking on the arrow', async () => {
const current_account_button = await screen.findByRole('button', { name: /CR111111/i });

await act(async () => {
Expand All @@ -102,7 +102,7 @@ describe('HeroHeader', () => {
expect(close_dropdown_button).not.toBeVisible();
});

it.skip('Should render Accounts when no account is selected', () => {
it('Should render Accounts when no account is selected', () => {
cleanup();
mockUseAuthContext.mockImplementation(() => {
return {
Expand All @@ -127,7 +127,7 @@ describe('HeroHeader', () => {
expect(accounts_button).toBeInTheDocument();
});

it.skip('Should render the dropdown menu on current account button click', async () => {
it('Should render the dropdown menu on current account button click', async () => {
const current_account_button = screen.getByRole('button', { name: /USD/i });

await act(async () => {
Expand All @@ -139,7 +139,7 @@ describe('HeroHeader', () => {
expect(menu_items.length).toBe(1);
});

it.skip('Should update current account on menu item click', async () => {
it('Should update current account on menu item click', async () => {
mockUseAuthContext.mockImplementation(() => {
return {
loginAccounts: fake_accounts,
Expand Down

This file was deleted.

Loading
Loading