Skip to content

Commit

Permalink
fix some bugs that occurs on windows local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
chottuthejimmy committed Nov 8, 2024
1 parent a12aae2 commit 0765567
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testdriver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
git clone https://github.com/testdriverai/mainframe.git
cd mainframe
Remove-Item -Path package-lock.json -Force
Remove-Item -Path node_modules -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item -Path node_modules -Recurse -Force -ErrorAction SilentlyContinue # may have to remove this as there would be no node_modules
npm install
npm start
Start-Process "C:/Program Files/Google/Chrome/Application/chrome.exe" -ArgumentList "--start-maximized", "--load-extension=$(pwd)/node_modules/dashcam-chrome/build", "${{ env.LOCALHOST }}"
Expand Down
1 change: 1 addition & 0 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"next": "14.2.5",
"next-contentlayer2": "^0.5.0",
"next-themes": "^0.3.0",
"promise-limit": "2.7.0",
"react": "^18",
"react-dom": "^18",
"react-syntax-highlighter": "^15.5.0",
Expand Down
4 changes: 1 addition & 3 deletions packages/docs/src/components/posts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ export const sections = [
return {
name: section.name,
pages: section.pages.map((slug) => {
const post = allPosts.find((post) =>
post.fileName === `${slug}.md` || post.fileName === `${slug}.mdx`
);
const post = allPosts.find((post) => post.fileName.replace(/\.(md|mdx)$/, '') === slug);
if (!post) {
throw new Error(`Missing post: ${slug}`);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/db/db.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ try {
}
}

export const dbClient = createClient({ url: `file://${dbPath}` });
export const dbClient = createClient({ url: `file:${dbPath}` });
1 change: 1 addition & 0 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"lodash-es": "^4.17.21",
"nanoid": "^5.0.7",
"openai": "^4.52.3",
"promise-limit": "2.7.0",
"typed-emitter": "^2.1.0",
"zod": "^3.21.4"
},
Expand Down
64 changes: 32 additions & 32 deletions testdriver/test.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
version: 4.0.55
version: 4.1.9
steps:
- prompt: focus chrome
commands:
- command: focus-application
name: Google Chrome
- prompt: >-
click on the eye icon to reveal the api key, copy the key, it starts with
"github_" remember this key. Open new tab add go to
"https://justpaste.it/" and paste the api key there
click on the input field for the username and enter testdriverai and for
password enter aitesting and click on sign up
commands:
- command: focus-application
name: Google Chrome
- command: hover-image
description: eye icon to reveal the API key
- prompt: >-
click on the input field for the username and enter testdriverai and for
password enter aitesting and click on sign up
commands:
- command: hover-text
text: Username
description: username input field
action: click
- command: type
text: testdriverai
- command: hover-text
text: github_
description: API key text
action: double-click
- command: press-keys
keys:
- command
- c
- command: remember
description: API key
value: github_
- command: press-keys
keys:
- command
- t
text: Password
description: password input field
action: click
- command: type
text: https://justpaste.it/
- command: press-keys
keys:
- enter
- command: press-keys
keys:
- command
- v
- prompt: enter the API Key
text: aitesting
- command: hover-text
text: Sign up
description: sign up button
action: click
- prompt: >-
click on the input field for the username and enter testdriverai and for
password enter aitesting and click on sign up
commands:
- command: focus-application
name: Google Chrome
- command: hover-text
text: Username
description: username input field
action: click
- command: type
text: github_
text: testdriverai
- command: hover-text
text: Password
description: password input field
action: click

0 comments on commit 0765567

Please sign in to comment.