-
Notifications
You must be signed in to change notification settings - Fork 149
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: gaia profile test #5073
fix: gaia profile test #5073
Conversation
beb5687
to
a29b2e6
Compare
await testAppPage.clickUpdateProfileButton(); | ||
const profileUpdatingPage = new UpdateProfileRequestPage(await context.waitForEvent('page')); | ||
|
||
const requestPromise = profileUpdatingPage.page.waitForRequest('https://hub.blockstack.org/*'); | ||
|
||
await profileUpdatingPage.page.route('https://gaia.hiro.so/hub/*', async route => { |
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.
Maybe we can use this approach to add some mocks for Ordinals so we can test the send BRC20 / ordinal flow?
I need to do that soon as it suprised me again on containers. I have this task for a while
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.
Perfect, thanks for fixing.
tests/specs/profile/profile.spec.ts
Outdated
@@ -13,14 +12,19 @@ test.describe('Profile updating', () => { | |||
await onboardingPage.signInWithTestAccount(extensionId); | |||
testAppPage = await TestAppPage.openDemoPage(context); | |||
await testAppPage.signIn(); | |||
}); | |||
|
|||
test.describe.configure({ mode: 'serial' }); |
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.
With the mocking is serial necessary?
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 can try removing it.
|
||
test.skip('should send a signed profile token to gaia', async ({ context }) => { | ||
await testAppPage.clickUpdateProfileButton(); | ||
const profileUpdatingPage = new UpdateProfileRequestPage(await context.waitForEvent('page')); | ||
|
||
const requestPromise = profileUpdatingPage.page.waitForRequest('https://hub.blockstack.org/*'); |
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.
Does this trigger at all? I half-looked into this and couldn't get this to log
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 did see the log when using --ui
flag running tests in UI mode.
1c01286
to
24fdbdb
Compare
24fdbdb
to
dbfac38
Compare
Catching the route to gaia and mocking the profile response in hopes of fixing the profile test. 🤞