-
Notifications
You must be signed in to change notification settings - Fork 4
✅ e2e: add borrow asset flow #710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8b4f49c
17b4c18
02e87c3
2badfc2
f1cfaab
ea5eb0d
983478f
09ea4d9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@exactly/mobile": patch | ||
| --- | ||
|
|
||
| ♿️ add aria label to loan amount selector |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| appId: ${APP_ID ?? "app.exactly"} | ||
| --- | ||
| - assertTrue: ${amount && !Number.isNaN(Number(amount))} | ||
| - assertTrue: ${installments && !Number.isNaN(Number(installments))} | ||
|
cruzdanilo marked this conversation as resolved.
|
||
| - tapOn: DeFi | ||
| - runFlow: | ||
| when: { visible: Explore decentralized services } | ||
| commands: [{ tapOn: "Explore decentralized services" }] | ||
| - tapOn: USDC funding | ||
| - runFlow: | ||
| when: { visible: Connect wallet to Exactly Protocol } | ||
| commands: [{ tapOn: Connect wallet to Exactly Protocol }] | ||
| - tapOn: Explore funding options | ||
| - assertVisible: Select amount | ||
| - runFlow: # HACK https://github.com/mobile-dev-inc/Maestro/issues/2914 | ||
| when: { true: "${maestro.platform != 'web'}" } | ||
| commands: [{ tapOn: Amount }] | ||
| - runFlow: # HACK https://github.com/mobile-dev-inc/Maestro/issues/2914 | ||
| when: { platform: web } | ||
| commands: [{ tapOn: { id: Amount } }] | ||
| - inputText: ${amount} | ||
| - tapOn: Select Amount # HACK | ||
| - tapOn: Continue | ||
| - assertVisible: Select your funding installment plan | ||
| - tapOn: "${installments + ' installment' + (installments > 1 ? 's' : '') + ' of'}" | ||
| - tapOn: Continue | ||
| - assertVisible: Select first due date | ||
| - tapOn: "^[A-Z][a-z]+ \\d+, \\d{4}$" | ||
| - tapOn: Continue | ||
| - assertVisible: Your Exa account | ||
| - tapOn: Review loan terms | ||
| - assertVisible: Review terms | ||
| - tapOn: Confirm and receive USDC | ||
| - extendedWaitUntil: { visible: Funding request sent, timeout: 180000 } | ||
| - runScript: ../dist/getAccount.js | ||
| - runScript: | ||
| file: ../dist/hookProposals.js | ||
| env: { account: "${output.account}" } | ||
|
cruzdanilo marked this conversation as resolved.
|
||
| - tapOn: Close | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ process.on("uncaughtException", () => null); | |
| process.stdout.on("error", () => null); | ||
| process.stderr.on("error", () => null); | ||
|
|
||
| const v = spawn("vitest", ["run"], { stdio: ["ignore", "pipe", "pipe"], env: { ...process.env, FORCE_COLOR: "1" } }); | ||
| const v = spawn("vitest", ["--watch"], { stdio: ["ignore", "pipe", "pipe"], env: { ...process.env, FORCE_COLOR: "1" } }); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: cat -n server/script/e2e.tsRepository: exactly/exa Length of output: 1676 🏁 Script executed: # Check if there are other scripts using similar patterns for CI detection
rg "process\.env\.CI|CI.*spawn|vitest" --type ts --type js -B2 -A2Repository: exactly/exa Length of output: 12848 🏁 Script executed: # Check how the e2e script is typically invoked
find . -type f -name "package.json" -o -name "*.yml" -o -name "*.yaml" | head -20Repository: exactly/exa Length of output: 730 🏁 Script executed: # Check package.json scripts
rg "e2e" package.json -A2 -B2Repository: exactly/exa Length of output: 2598 🏁 Script executed: # Check workflow files for e2e.ts invocation
rg "e2e" .github/workflows/test.yaml -A3 -B3Repository: exactly/exa Length of output: 1475 🏁 Script executed: # Search for how vitest watch mode is typically handled
rg "spawn.*vitest|--watch" --type ts --type jsRepository: exactly/exa Length of output: 197 Gate watch mode to interactive environments; use run mode in CI. Vitest's Suggested fix-const v = spawn("vitest", ["--watch"], { stdio: ["ignore", "pipe", "pipe"], env: { ...process.env, FORCE_COLOR: "1" } });
+const v = spawn("vitest", [process.env.CI ? "run" : "--watch"], { stdio: ["ignore", "pipe", "pipe"], env: { ...process.env, FORCE_COLOR: "1" } });🤖 Prompt for AI Agents |
||
|
|
||
| v.stdout.pipe(process.stdout); | ||
| v.stderr.pipe(process.stderr); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.