Skip to content
Snippets Groups Projects

fix(overlays): change disabling overlay button label to hide

Merged mateusz-winiarczyk requested to merge MIN-312-button-name-in-overlays into development
4 files
+ 7
7
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -76,7 +76,7 @@ describe('OverlayListItem - component', () => {
@@ -76,7 +76,7 @@ describe('OverlayListItem - component', () => {
},
},
});
});
});
});
it('should disable overlay on view button click if overlay is active', async () => {
it('should hide overlay on view button click if overlay is active', async () => {
const OVERLAY_ID = 21;
const OVERLAY_ID = 21;
const { store } = renderComponent({
const { store } = renderComponent({
map: {
map: {
@@ -88,7 +88,7 @@ describe('OverlayListItem - component', () => {
@@ -88,7 +88,7 @@ describe('OverlayListItem - component', () => {
models: { ...MODELS_INITIAL_STATE_MOCK, data: [CORE_PD_MODEL_MOCK] },
models: { ...MODELS_INITIAL_STATE_MOCK, data: [CORE_PD_MODEL_MOCK] },
});
});
const ViewButton = screen.getByRole('button', { name: 'Disable' });
const ViewButton = screen.getByRole('button', { name: 'Hide' });
await act(() => {
await act(() => {
ViewButton.click();
ViewButton.click();
});
});
@@ -108,7 +108,7 @@ describe('OverlayListItem - component', () => {
@@ -108,7 +108,7 @@ describe('OverlayListItem - component', () => {
});
});
expect(screen.getByAltText('spinner icon')).toBeVisible();
expect(screen.getByAltText('spinner icon')).toBeVisible();
expect(screen.getByText('Disable')).toBeVisible();
expect(screen.getByText('Hide')).toBeVisible();
});
});
});
});
Loading