Skip to content

Commit

Permalink
fix: gaia profile test
Browse files Browse the repository at this point in the history
  • Loading branch information
fbwoolf committed Mar 12, 2024
1 parent 5590cd4 commit a2a2eaa
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/specs/profile/profile.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ test.describe('Profile updating', () => {
const name = profileUpdatingPage.page.getByText('twitter');
const nameText = await name.innerText();
test.expect(nameText).toBe('https://twitter.com/twitterHandle');
await profileUpdatingPage.page.close();
});

test('should show an error for invalid profile', async ({ context }) => {
Expand All @@ -36,6 +37,23 @@ test.describe('Profile updating', () => {
);

test.expect(error).toBeTruthy();
await profileUpdatingPage.page.close();
});
});

test.describe('Gaia request', () => {
let testAppPage: TestAppPage;

test.beforeEach(async ({ extensionId, globalPage, onboardingPage, context }) => {
await globalPage.setupAndUseApiCalls(extensionId);
await onboardingPage.signInWithTestAccount(extensionId);
testAppPage = await TestAppPage.openDemoPage(context);
await testAppPage.signIn();
const accountsPage = await context.waitForEvent('page');
await accountsPage.locator('text="Account 2"').click({ force: true });
await testAppPage.page.bringToFront();
await testAppPage.page.click('text=Profile');
await accountsPage.close();
});

test('should send a signed profile token to gaia', async ({ context }) => {
Expand Down

0 comments on commit a2a2eaa

Please sign in to comment.