-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Stanislav Lysak
committed
Sep 19, 2024
1 parent
8e8aea9
commit 21511eb
Showing
7 changed files
with
91 additions
and
16 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 |
---|---|---|
|
@@ -104,6 +104,36 @@ test.describe('profile', () => { | |
await expect(profilePage.record('text', 'email')).toHaveText('[email protected]') | ||
await expect(profilePage.contentHash()).toContainText('ipfs://bafybeic...') | ||
}) | ||
|
||
test('should redirect to profile tab if tab specified in query string does not exist', async ({ | ||
page, | ||
login, | ||
makeName, | ||
makePageObject, | ||
}) => { | ||
const name = await makeName({ | ||
label: 'profile', | ||
type: 'legacy', | ||
records: await makeRecords(), | ||
}) | ||
|
||
const profilePage = makePageObject('ProfilePage') | ||
|
||
await profilePage.goto(name) | ||
await login.connect() | ||
|
||
await page.goto(`/${name}?tab=customTab`) | ||
|
||
await expect(page).toHaveURL(`/${name}`) | ||
|
||
await page.pause() | ||
await expect(profilePage.record('text', 'description')).toHaveText('Hello2') | ||
await expect(profilePage.record('text', 'url')).toHaveText('twitter.com') | ||
await expect(profilePage.record('address', 'btc')).toHaveText('bc1qj...pwa6n') | ||
await expect(profilePage.record('address', 'etcLegacy')).toHaveText('etcLegacy0x3C4...293BC') | ||
await expect(profilePage.record('text', 'email')).toHaveText('[email protected]') | ||
await expect(profilePage.contentHash()).toContainText('ipfs://bafybeic...') | ||
}) | ||
}) | ||
|
||
test.describe('migrations', () => { | ||
|
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