mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐛 Fix integration tests
This commit is contained in:
@@ -0,0 +1,114 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"~:is-admin": false,
|
||||||
|
"~:email": "luke@rebels.com",
|
||||||
|
"~:team-id": "~udd33ff88-f4e5-8033-8003-8096cc07bdf3",
|
||||||
|
"~:name": "Luke Skywalker",
|
||||||
|
"~:fullname": "Luke Skywalker",
|
||||||
|
"~:is-owner": false,
|
||||||
|
"~:modified-at": "~m1713533116365",
|
||||||
|
"~:can-edit": true,
|
||||||
|
"~:is-active": true,
|
||||||
|
"~:id": "~u4f535993-36f9-8135-8006-9b18345c55cd",
|
||||||
|
"~:profile-id": "~u4f535993-36f9-8135-8006-9b18345c55cd",
|
||||||
|
"~:created-at": "~m1713533116365"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"~:is-admin": false,
|
||||||
|
"~:email": "leia@rebels.com",
|
||||||
|
"~:team-id": "~udd33ff88-f4e5-8033-8003-8096cc07bdf3",
|
||||||
|
"~:name": "Leia Organa",
|
||||||
|
"~:fullname": "Leia Organa",
|
||||||
|
"~:is-owner": false,
|
||||||
|
"~:modified-at": "~m1713533116365",
|
||||||
|
"~:can-edit": true,
|
||||||
|
"~:is-active": true,
|
||||||
|
"~:id": "~u70a3b232-3722-8008-8006-86646ed3b6af",
|
||||||
|
"~:profile-id": "~u70a3b232-3722-8008-8006-86646ed3b6af",
|
||||||
|
"~:created-at": "~m1713533116365"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"~:is-admin": false,
|
||||||
|
"~:email": "han@falcon.com",
|
||||||
|
"~:team-id": "~udd33ff88-f4e5-8033-8003-8096cc07bdf3",
|
||||||
|
"~:name": "Han Solo",
|
||||||
|
"~:fullname": "Han Solo",
|
||||||
|
"~:is-owner": false,
|
||||||
|
"~:modified-at": "~m1713533116365",
|
||||||
|
"~:can-edit": true,
|
||||||
|
"~:is-active": true,
|
||||||
|
"~:id": "~u81be1d05-a07b-81d5-8006-39095ea4121c",
|
||||||
|
"~:profile-id": "~u81be1d05-a07b-81d5-8006-39095ea4121c",
|
||||||
|
"~:created-at": "~m1713533116365"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"~:is-admin": false,
|
||||||
|
"~:email": "vader@empire.com",
|
||||||
|
"~:team-id": "~udd33ff88-f4e5-8033-8003-8096cc07bdf3",
|
||||||
|
"~:name": "Darth Vader",
|
||||||
|
"~:fullname": "Darth Vader",
|
||||||
|
"~:is-owner": false,
|
||||||
|
"~:modified-at": "~m1713533116365",
|
||||||
|
"~:can-edit": true,
|
||||||
|
"~:is-active": true,
|
||||||
|
"~:id": "~u96ce2641-e3fd-803a-8006-5e516d034d57",
|
||||||
|
"~:profile-id": "~u96ce2641-e3fd-803a-8006-5e516d034d57",
|
||||||
|
"~:created-at": "~m1713533116365"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"~:is-admin": false,
|
||||||
|
"~:email": "obiwan@jedi.com",
|
||||||
|
"~:team-id": "~udd33ff88-f4e5-8033-8003-8096cc07bdf3",
|
||||||
|
"~:name": "Obi-Wan Kenobi",
|
||||||
|
"~:fullname": "Obi-Wan Kenobi",
|
||||||
|
"~:is-owner": false,
|
||||||
|
"~:modified-at": "~m1713533116365",
|
||||||
|
"~:can-edit": true,
|
||||||
|
"~:is-active": true,
|
||||||
|
"~:id": "~uc9aa6cb0-9fb5-80a2-8006-9c3a0783ddc7",
|
||||||
|
"~:profile-id": "~uc9aa6cb0-9fb5-80a2-8006-9c3a0783ddc7",
|
||||||
|
"~:created-at": "~m1713533116365"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"~:is-admin": false,
|
||||||
|
"~:email": "yoda@jedi.com",
|
||||||
|
"~:team-id": "~udd33ff88-f4e5-8033-8003-8096cc07bdf3",
|
||||||
|
"~:name": "Yoda",
|
||||||
|
"~:fullname": "Yoda",
|
||||||
|
"~:is-owner": false,
|
||||||
|
"~:modified-at": "~m1713533116365",
|
||||||
|
"~:can-edit": true,
|
||||||
|
"~:is-active": true,
|
||||||
|
"~:id": "~uf88e52d7-2b77-81fd-8006-234039f9e8db",
|
||||||
|
"~:profile-id": "~uf88e52d7-2b77-81fd-8006-234039f9e8db",
|
||||||
|
"~:created-at": "~m1713533116365"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"~:is-admin": false,
|
||||||
|
"~:email": "chewie@falcon.com",
|
||||||
|
"~:team-id": "~udd33ff88-f4e5-8033-8003-8096cc07bdf3",
|
||||||
|
"~:name": "Chewbacca",
|
||||||
|
"~:fullname": "Chewbacca",
|
||||||
|
"~:is-owner": false,
|
||||||
|
"~:modified-at": "~m1713533116365",
|
||||||
|
"~:can-edit": true,
|
||||||
|
"~:is-active": true,
|
||||||
|
"~:id": "~uf88e52d7-2b77-81fd-8006-2341585b061d",
|
||||||
|
"~:profile-id": "~uf88e52d7-2b77-81fd-8006-2341585b061d",
|
||||||
|
"~:created-at": "~m1713533116365"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"~:is-admin": false,
|
||||||
|
"~:email": "r2d2@astromech.com",
|
||||||
|
"~:team-id": "~udd33ff88-f4e5-8033-8003-8096cc07bdf3",
|
||||||
|
"~:name": "R2-D2",
|
||||||
|
"~:fullname": "R2-D2",
|
||||||
|
"~:is-owner": false,
|
||||||
|
"~:modified-at": "~m1713533116365",
|
||||||
|
"~:can-edit": true,
|
||||||
|
"~:is-active": true,
|
||||||
|
"~:id": "~ufa35a73f-fa4f-81f9-8006-a558c4d406b1",
|
||||||
|
"~:profile-id": "~ufa35a73f-fa4f-81f9-8006-a558c4d406b1",
|
||||||
|
"~:created-at": "~m1713533116365"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"~:is-admin": false,
|
|
||||||
"~:email": "foo@example.com",
|
|
||||||
"~:team-id": "~udd33ff88-f4e5-8033-8003-8096cc07bdf3",
|
|
||||||
"~:name": "Princesa Leia",
|
|
||||||
"~:fullname": "Princesa Leia",
|
|
||||||
"~:is-owner": false,
|
|
||||||
"~:modified-at": "~m1713533116365",
|
|
||||||
"~:can-edit": true,
|
|
||||||
"~:is-active": true,
|
|
||||||
"~:id": "~u123456789-0000-0000-0000-abcdefabcdef",
|
|
||||||
"~:profile-id": "~u123456789-0000-0000-0000-abcdefabcdef",
|
|
||||||
"~:created-at": "~m1713533116365"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
"~:subscription": {
|
"~:subscription": {
|
||||||
"~:type": "unlimited",
|
"~:type": "unlimited",
|
||||||
"~:status": "trialing",
|
"~:status": "trialing",
|
||||||
"~:seats": 5
|
"~:seats": 2
|
||||||
},
|
},
|
||||||
"~:name": "Second team",
|
"~:name": "Second team",
|
||||||
"~:modified-at": "~m1701164272671",
|
"~:modified-at": "~m1701164272671",
|
||||||
|
|||||||
@@ -215,6 +215,12 @@ test.describe("Subscriptions: team members and invitations", () => {
|
|||||||
"subscription/get-team-members-subscription-member.json",
|
"subscription/get-team-members-subscription-member.json",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
await DashboardPage.mockRPC(
|
||||||
|
page,
|
||||||
|
"get-team-stats?team-id=*",
|
||||||
|
"dashboard/get-team-stats.json",
|
||||||
|
);
|
||||||
|
|
||||||
await dashboardPage.mockRPC(
|
await dashboardPage.mockRPC(
|
||||||
"push-audit-events",
|
"push-audit-events",
|
||||||
"workspace/audit-event-empty.json",
|
"workspace/audit-event-empty.json",
|
||||||
@@ -299,7 +305,7 @@ test.describe("Subscriptions: team members and invitations", () => {
|
|||||||
await DashboardPage.mockRPC(
|
await DashboardPage.mockRPC(
|
||||||
page,
|
page,
|
||||||
"get-subscription-usage",
|
"get-subscription-usage",
|
||||||
"subscription/get-subscription-usage-one-editor.json",
|
"subscription/get-subscription-usage.json",
|
||||||
);
|
);
|
||||||
|
|
||||||
await DashboardPage.mockRPC(
|
await DashboardPage.mockRPC(
|
||||||
@@ -325,7 +331,7 @@ test.describe("Subscriptions: team members and invitations", () => {
|
|||||||
await DashboardPage.mockRPC(
|
await DashboardPage.mockRPC(
|
||||||
page,
|
page,
|
||||||
"get-team-members?team-id=*",
|
"get-team-members?team-id=*",
|
||||||
"subscription/get-team-members-subscription-one-member.json",
|
"subscription/get-team-members-subscription-eight-member.json",
|
||||||
);
|
);
|
||||||
|
|
||||||
await dashboardPage.mockRPC(
|
await dashboardPage.mockRPC(
|
||||||
@@ -334,7 +340,9 @@ test.describe("Subscriptions: team members and invitations", () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
await dashboardPage.goToSecondTeamMembersSection();
|
await dashboardPage.goToSecondTeamMembersSection();
|
||||||
await expect(page.getByTestId("cta")).toBeVisible();
|
|
||||||
|
const ctas = page.getByTestId("cta");
|
||||||
|
await expect(ctas).toHaveCount(2);
|
||||||
await expect(
|
await expect(
|
||||||
page.getByText("Inviting people while on the unlimited plan"),
|
page.getByText("Inviting people while on the unlimited plan"),
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
@@ -352,7 +360,7 @@ test.describe("Subscriptions: team members and invitations", () => {
|
|||||||
await DashboardPage.mockRPC(
|
await DashboardPage.mockRPC(
|
||||||
page,
|
page,
|
||||||
"get-subscription-usage",
|
"get-subscription-usage",
|
||||||
"subscription/get-subscription-usage-one-editor.json",
|
"subscription/get-subscription-usage.json",
|
||||||
);
|
);
|
||||||
|
|
||||||
await DashboardPage.mockRPC(
|
await DashboardPage.mockRPC(
|
||||||
@@ -378,7 +386,7 @@ test.describe("Subscriptions: team members and invitations", () => {
|
|||||||
await DashboardPage.mockRPC(
|
await DashboardPage.mockRPC(
|
||||||
page,
|
page,
|
||||||
"get-team-members?team-id=*",
|
"get-team-members?team-id=*",
|
||||||
"subscription/get-team-members-subscription-one-member.json",
|
"subscription/get-team-members-subscription-eight-member.json",
|
||||||
);
|
);
|
||||||
|
|
||||||
await DashboardPage.mockRPC(
|
await DashboardPage.mockRPC(
|
||||||
@@ -393,7 +401,9 @@ test.describe("Subscriptions: team members and invitations", () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
await dashboardPage.goToSecondTeamInvitationsSection();
|
await dashboardPage.goToSecondTeamInvitationsSection();
|
||||||
await expect(page.getByTestId("cta")).toBeVisible();
|
|
||||||
|
const ctas = page.getByTestId("cta");
|
||||||
|
await expect(ctas).toHaveCount(2);
|
||||||
await expect(
|
await expect(
|
||||||
page.getByText("Inviting people while on the unlimited plan"),
|
page.getByText("Inviting people while on the unlimited plan"),
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
|
|||||||
Reference in New Issue
Block a user