-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fet980-ownership-tab
- Loading branch information
Showing
22 changed files
with
217 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,6 @@ import { emptyAddress } from '@app/utils/constants' | |
|
||
const oldResolver = '0x84eA74d481Ee0A5332c457a4d796187F6Ba67fEB' | ||
const newResolver = '0x0E801D84Fa97b50751Dbf25036d067dCf18858bF' | ||
// This not an actual resovler but a dummy address that has been inserted to the second to last known resolver | ||
// to test the situation where unwrapped do not show a warning when editing profile. | ||
const dummyRersolver = '0xd7a4F6473f32aC2Af804B3686AE8F1932bC35750' | ||
|
||
const DEFAULT_RECORDS = { | ||
texts: [ | ||
|
@@ -35,6 +32,7 @@ const DEFAULT_RECORDS = { | |
value: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC', | ||
}, | ||
], | ||
contentHash: 'ipfs://bafybeico3uuyj3vphxpvbowchdwjlrlrh62awxscrnii7w7flu5z6fk77y', | ||
} | ||
|
||
test.describe('unwrapped', () => { | ||
|
@@ -172,6 +170,7 @@ test.describe('unwrapped', () => { | |
'ETC_LEGACY0x3C4...293BC', | ||
) | ||
await expect(profilePage.record('text', 'email')).toHaveText('[email protected]') | ||
await expect(profilePage.contentHash()).toContainText('ipfs://bafybeic...') | ||
|
||
await profilePage.editProfileButton.click() | ||
await profilePage.profileEditor.getByTestId('warning-overlay-next-button').click() | ||
|
@@ -324,35 +323,6 @@ test.describe('wrapped', () => { | |
}) | ||
}) | ||
|
||
test.describe('resolver status', () => { | ||
test('should not show warning when editing unwrapped name with second to last resolver', async ({ | ||
page, | ||
login, | ||
makeName, | ||
makePageObject, | ||
}) => { | ||
const name = await makeName({ | ||
label: 'unwrapped', | ||
type: 'legacy', | ||
resolver: dummyRersolver, | ||
}) | ||
|
||
const morePage = makePageObject('MorePage') | ||
const profilePage = makePageObject('ProfilePage') | ||
|
||
await morePage.goto(name) | ||
await login.connect() | ||
|
||
await expect(morePage.resolver).toHaveText(dummyRersolver) | ||
await expect(page.getByText('Latest')).toBeVisible() | ||
|
||
await profilePage.goto(name) | ||
|
||
await profilePage.editProfileButton.click() | ||
await expect(profilePage.profileEditor.getByText('Edit your profile')).toBeVisible() | ||
}) | ||
}) | ||
|
||
test.describe('subgraph errors', () => { | ||
test('should disable edit profile button when there is a subgraph error', async ({ | ||
page, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.