-
Notifications
You must be signed in to change notification settings - Fork 6
E2E Testing #47
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
base: main
Are you sure you want to change the base?
E2E Testing #47
Conversation
examples/vue-app/package-lock.json
Outdated
@@ -1,39 +1,13987 @@ | |||
{ | |||
"name": "vue-app", | |||
"version": "0.1.0", | |||
"lockfileVersion": 1, | |||
"lockfileVersion": 2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we commit package lock files for test commits? cc: @metallicalfa2
const [page1] = await Promise.all([ | ||
page.waitForEvent("popup"), | ||
page.click("button >> text=Sign All Transactions") | ||
]); | ||
|
||
await page1.waitForSelector("text=Confirm Permission"); | ||
await page1.click("button >> text=Approve") | ||
await wait(1500); | ||
|
||
const consoleData = JSON.parse(await page.locator("#console > p").innerText()); | ||
expect(consoleData).toHaveLength(3); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use try, catch to test error sceneraio's console to have better coverage?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you clarify how try catch will increase test coverage here?
# Conflicts: # examples/vue-app/package-lock.json # examples/vue-app/package.json # examples/vue-app/src/components/HelloWorld.vue # package-lock.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good cc @metallicalfa2
please confirm if this is okay to show in example app
<button @click="() => transfer(10001)">Transfer error
<button @click="() => lookupDepositSPL(mintAddress, 100)" :disabled="network!==testnet">Custom program error (Testnet)
Add e2e testing for example app