Question: I have two visuals in the report stacked on top of each other
by default, both of the visuals occupy 50% of the space.
I want functionality like 2 buttons to focus on each visual.

Now, when I click on the 1st button it should make the 1st visual 3 times the size of the 2nd visual. Similarly, when I click on the 2nd button it should make the 2nd visual 3 times the size of the 1st visual.

How to achieve this in Power BI. Thanks in Advance.

Answer: 
I was having the same issue, and it was caused by calling `toBe()` or `toEqual()` on an HTMLElement. So your most likely culprit is here, since `getByTestId` returns an HTMLElement:

`expect(getByTestId('dateRange')).toBe(dateRange);`

I fixed my issue by testing against the element's text content instead.

`expect(getByTestId('dateRange')).toHaveTextContent('...');`
I ran into this error while testing to see if a `<select>` had the right number of options, when using this:

```js
expect(container.querySelectorAll('option')).toBe(2);

```

@testing-library/react must be trying to do something strange to get the length of the HTML collection, I have. So I added `.length` to the query:

```js
expect(container.querySelectorAll('option').length).toBe(2);

```

All was well.