1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

Enable the live location share button (#8056)

This commit is contained in:
Andy Balaam
2022-03-16 09:37:09 +00:00
committed by GitHub
parent e1fdff46f5
commit cbf5fbf870
3 changed files with 29 additions and 23 deletions

View File

@ -23,6 +23,12 @@ const findByAttr = (attr: string) => (component: ReactWrapper, value: string) =>
export const findByTestId = findByAttr('data-test-id');
export const findById = findByAttr('id');
const findByTagAndAttr = (attr: string) =>
(component: ReactWrapper, value: string, tag: string) =>
component.find(`${tag}[${attr}="${value}"]`);
export const findByTagAndTestId = findByTagAndAttr('data-test-id');
export const flushPromises = async () => await new Promise(resolve => setTimeout(resolve));
/**