Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiller1990 committed Mar 10, 2021
1 parent 4f80903 commit 379d1bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion npm/react/cypress/component/viewport-spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('cy.viewport', () => {
minima libero vel? Nam sequi iusto quod fugit vel rerum eligendi beatae voluptatibus numquam.
</p>)

expect(getComputedStyle(window.parent.document.querySelector('iframe').parentElement).transform).to.contain('matrix(1')
expect(getComputedStyle(window.parent.document.querySelector('iframe').parentElement).transform).to.contain('matrix(0.8')
cy.viewport(2000, 200).should(() => {
expect(getComputedStyle(window.parent.document.querySelector('iframe').parentElement).transform).not.to.contain('matrix(1')
})
Expand Down
4 changes: 1 addition & 3 deletions packages/runner-ct/src/app/RunnerCt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,13 @@ export const AUT_IFRAME_MARGIN = {

const App: React.FC<AppProps> = observer(
function App (props: AppProps) {
const searchRef = React.createRef<HTMLInputElement>(null)
const searchRef = React.useRef<HTMLInputElement>(null)
const splitPaneRef = React.useRef<{ splitPane: HTMLDivElement }>(null)
const pluginRootContainer = React.useRef<null | HTMLDivElement>(null)

const { state, eventManager, config } = props
const isOpenMode = !config.isTextTerminal

const [isResizing, setIsResizing] = React.useState(false)

const [isSpecsListOpen, setIsSpecsListOpen] = React.useState(isOpenMode)

// const windowSize = useWindowSize()
Expand Down

0 comments on commit 379d1bf

Please sign in to comment.