-
Notifications
You must be signed in to change notification settings - Fork 444
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' of github.com:guildxyz/guild.xyz into profiles-page
- Loading branch information
Showing
101 changed files
with
1,076 additions
and
974 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { expect } from "@playwright/test" | ||
import { GUILD_CHECKOUT_TEST_GUILD_URL_NAME } from "./constants" | ||
import { test } from "./fixtures" | ||
|
||
test("can mint guild pin", async ({ pageWithKeyPair: { page } }) => { | ||
await page.goto(GUILD_CHECKOUT_TEST_GUILD_URL_NAME) | ||
|
||
await page.waitForResponse("**/v2/users/*/memberships?guildId=*") | ||
|
||
const mintGuildPinButton = await page.getByTestId("mint-guild-pin-button") | ||
await mintGuildPinButton.click() | ||
|
||
const mintGuildPinDialog = await page.getByRole("dialog", { | ||
name: "Mint Guild Pin", | ||
}) | ||
await expect(mintGuildPinDialog).toBeVisible() | ||
|
||
const feeText = await page.getByTestId("guild-pin-fee") | ||
await expect(feeText).toContainText("0.001 ETH") | ||
|
||
const bigMintGuildPinButton = await page.getByTestId("big-mint-guild-pin-button") | ||
await expect(bigMintGuildPinButton).toBeEnabled() | ||
await bigMintGuildPinButton.click() | ||
|
||
await page.waitForResponse("**/v2/guilds/*/pin") | ||
|
||
const successToast = await page.getByText("Successfully minted Guild Pin!") | ||
await expect(successToast).toBeVisible({ timeout: 30_000 }) | ||
}) |
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
export const TEST_USER = { | ||
id: 953897, | ||
address: "0x304def656babc745c53782639d3cab00ace8c843", | ||
id: 6051234, | ||
address: "0xcb03d1acd17abaf5c6019da30c9e652bdbed459f", | ||
} as const | ||
|
||
export const GUILD_CHECKOUT_TEST_GUILD_URL_NAME = "guild-checkout-e2e" | ||
|
||
export const TEST_GUILD_URL_NAME = "guild-e2e" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.