Skip to content

Commit

Permalink
debug ci
Browse files Browse the repository at this point in the history
  • Loading branch information
willydouhard committed Dec 12, 2023
1 parent 7ec739d commit beaf639
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/ask_file/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async def start():
).send()
txt_file = files[0]

async with aiofiles.open(txt_file.path, "r") as f:
async with aiofiles.open(txt_file.path, "r", encoding="utf-8") as f:
content = await f.read()
await cl.Message(
content=f"`Text file {txt_file.name}` uploaded, it contains {len(content)} characters!"
Expand All @@ -21,7 +21,7 @@ async def start():
).send()
py_file = files[0]

async with aiofiles.open(py_file.path, "r") as f:
async with aiofiles.open(py_file.path, "r", encoding="utf-8") as f:
content = await f.read()
await cl.Message(
content=f"`Python file {py_file.name}` uploaded, it contains {len(content)} characters!"
Expand Down
4 changes: 2 additions & 2 deletions cypress/support/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export async function runTests(matchName) {
runCommand('pnpm exec ts-node ./cypress/support/run.ts action');

// Recording the cypress run is time consuming. Disabled by default.
const recordOptions = ` --record --key ${process.env.CYPRESS_RECORD_KEY} `;
// const recordOptions = ` --record --key ${process.env.CYPRESS_RECORD_KEY} `;
return runCommand(
`pnpm exec cypress run ${recordOptions} --spec "cypress/e2e/${matchName}/spec.cy.ts"`
`pnpm exec cypress run --record false --spec "cypress/e2e/${matchName}/spec.cy.ts"`
);
}

Expand Down

0 comments on commit beaf639

Please sign in to comment.