-
Notifications
You must be signed in to change notification settings - Fork 145
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
fix: swaps test and others #4726
Conversation
a965dc7
to
ed59fcb
Compare
ed59fcb
to
7db0784
Compare
@@ -53,6 +53,7 @@ test.describe('Transaction signing', () => { | |||
const multiSignatureTxHex = await generateMultisigUnsignedStxTransfer( | |||
TEST_ACCOUNT_2_STX_ADDRESS, | |||
amount, | |||
100, |
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.
This test was failing bc the high fee warning popup was being triggered w/out a fee provided.
@@ -31,6 +24,14 @@ test.describe('Transaction signing', () => { | |||
test('that it validates against insufficient funds when performing a contract call', async ({ | |||
context, | |||
}) => { | |||
const accountsPage = await context.waitForEvent('page'); | |||
await accountsPage.locator('text="Account 2"').click(); |
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.
Account 1 in the test account doesn't have a 0 balance atm so this was failing.
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 fill it up instead of making this change?
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.
I think the problem was Account 1
has funds so clicking on Account 2
which doesn't solves it
Fixed a few other failing tests here. |
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.
Great investigation @fbwoolf, thanks
@@ -1,12 +1,12 @@ | |||
import { test } from '../../fixtures/fixtures'; | |||
|
|||
const alexSdkPostRoute = 'https://*.alexlab.co/v1/graphql'; | |||
const hiroApiPostRoute = '*/**/v2/transactions'; |
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.
also possible to be specific to Hiro api origin, too?
@@ -31,6 +24,14 @@ test.describe('Transaction signing', () => { | |||
test('that it validates against insufficient funds when performing a contract call', async ({ | |||
context, | |||
}) => { | |||
const accountsPage = await context.waitForEvent('page'); | |||
await accountsPage.locator('text="Account 2"').click(); |
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 fill it up instead of making this change?
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.
This PR changes to test swaps on mainnet bc we hide swaps on testnet. The broadcast is caught and aborted, so it should be ok. I also just did some clean up of the locators and handled if there happens to be a pending tx (which means we needed to catch the Hiro api post route).