Skip to content

Commit

Permalink
fix layout fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Apr 6, 2022
1 parent c8c7c08 commit 9c147f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -47,7 +47,7 @@ export function getSizer(
width: number,
height: number
): string {
let sizer: string | null = null
let sizer = ``
if (layout === `fullWidth`) {
sizer = `<div aria-hidden="true" style="padding-top: ${
(height / width) * 100
Expand Down
6 changes: 3 additions & 3 deletions scripts/cypress-run-with-conditional-record-flag.js
Expand Up @@ -13,18 +13,18 @@ const IS_CI = !!(
const shouldRecord =
!!process.env.CYPRESS_PROJECT_ID && !!process.env.CYPRESS_RECORD_KEY && IS_CI

const cypressBin = path.join(process.cwd(), `node_modules/.bin/cypress`)
const cypressBin = path.join(process.cwd(), `node_modules/cypress/bin/cypress`)

// first arg is node binary itself
// second arg is .js file entry point (as in - path to this file)
// we only care about extra args
const cypressArgs = [`run`, ...process.argv.slice(2)]
const cypressArgs = [cypressBin, `run`, ...process.argv.slice(2)]

if (shouldRecord) {
cypressArgs.push(`--record`)
}

childProcess.execFileSync(cypressBin, cypressArgs, {
childProcess.execFileSync(process.execPath, cypressArgs, {
cwd: process.cwd(),
stdio: `inherit`,
})

0 comments on commit 9c147f7

Please sign in to comment.