Remove Piwik support (#8835)

* Remove all mentions of Piwik

* Kill off all consumer of the old Piwik Analytics module

* Simplify ModalManager interface

* i18n

* Attempt to fix old e2e tests

* Remove unused component

* Iterate PR
This commit is contained in:
Michael Telatynski 2022-06-14 17:51:51 +01:00 committed by GitHub
parent 7d14d15ba6
commit 3c5c2bef6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
142 changed files with 446 additions and 1412 deletions

View file

@ -66,7 +66,7 @@ jest.mock('../../../../src/stores/OwnProfileStore', () => ({
}));
jest.mock('../../../../src/Modal', () => ({
createTrackedDialog: jest.fn(),
createDialog: jest.fn(),
}));
describe('<LocationShareMenu />', () => {
@ -121,7 +121,7 @@ describe('<LocationShareMenu />', () => {
mockClient.sendMessage.mockClear();
mockClient.unstable_createLiveBeacon.mockClear().mockResolvedValue({ event_id: '1' });
jest.spyOn(MatrixClientPeg, 'get').mockReturnValue(mockClient as unknown as MatrixClient);
mocked(Modal).createTrackedDialog.mockClear();
mocked(Modal).createDialog.mockClear();
jest.clearAllMocks();
@ -433,7 +433,7 @@ describe('<LocationShareMenu />', () => {
await flushPromisesWithFakeTimers();
expect(logSpy).toHaveBeenCalledWith("We couldn't start sharing your live location", error);
expect(mocked(Modal).createTrackedDialog).toHaveBeenCalled();
expect(mocked(Modal).createDialog).toHaveBeenCalled();
});
});
});

View file

@ -78,7 +78,7 @@ describe('<MBeaconBody />', () => {
wrappingComponentProps: { value: mockClient },
});
const modalSpy = jest.spyOn(Modal, 'createTrackedDialog').mockReturnValue(undefined);
const modalSpy = jest.spyOn(Modal, 'createDialog').mockReturnValue(undefined);
beforeAll(() => {
maplibregl.AttributionControl = jest.fn();

View file

@ -127,7 +127,7 @@ describe("MLocationBody", () => {
});
it('opens map dialog on click', () => {
const modalSpy = jest.spyOn(Modal, 'createTrackedDialog').mockReturnValue(undefined);
const modalSpy = jest.spyOn(Modal, 'createDialog').mockReturnValue(undefined);
const component = getComponent();
act(() => {