Skip to content
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

Merged
merged 1 commit into from
Mar 14, 2024
Merged

fix: gaia profile test #5073

merged 1 commit into from
Mar 14, 2024

Conversation

fbwoolf
Copy link
Contributor

@fbwoolf fbwoolf commented Mar 13, 2024

Try out this version of Leather — Extension build, Test report

Catching the route to gaia and mocking the profile response in hopes of fixing the profile test. 🤞

@fbwoolf fbwoolf force-pushed the fix/gaia-profile-test branch 2 times, most recently from beb5687 to a29b2e6 Compare March 14, 2024 02:00
@fbwoolf fbwoolf linked an issue Mar 14, 2024 that may be closed by this pull request
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 => {
Copy link
Contributor

@pete-watters pete-watters Mar 14, 2024

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

Copy link
Collaborator

@kyranjamie kyranjamie left a 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.

@@ -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' });
Copy link
Collaborator

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?

Copy link
Contributor Author

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/*');
Copy link
Collaborator

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

Copy link
Contributor Author

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.

@fbwoolf fbwoolf force-pushed the fix/gaia-profile-test branch 2 times, most recently from 1c01286 to 24fdbdb Compare March 14, 2024 18:00
@fbwoolf fbwoolf added this pull request to the merge queue Mar 14, 2024
Merged via the queue into dev with commit 1d87592 Mar 14, 2024
28 checks passed
@fbwoolf fbwoolf deleted the fix/gaia-profile-test branch March 14, 2024 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix profile test
3 participants