feat: enhance task editing and loading states in board tasks and boards list tests
This commit is contained in:
@@ -20,6 +20,41 @@ describe("/boards", () => {
|
||||
});
|
||||
|
||||
it("happy path: signed-in user sees boards list", () => {
|
||||
cy.intercept("GET", `${apiBase}/organizations/me/member*`, {
|
||||
statusCode: 200,
|
||||
body: {
|
||||
id: "m1",
|
||||
organization_id: "o1",
|
||||
user_id: "u1",
|
||||
role: "owner",
|
||||
all_boards_read: true,
|
||||
all_boards_write: true,
|
||||
created_at: "2026-02-11T00:00:00Z",
|
||||
updated_at: "2026-02-11T00:00:00Z",
|
||||
board_access: [],
|
||||
},
|
||||
}).as("membership");
|
||||
|
||||
cy.intercept("GET", `${apiBase}/users/me*`, {
|
||||
statusCode: 200,
|
||||
body: {
|
||||
id: "u1",
|
||||
clerk_user_id: "clerk_u1",
|
||||
email,
|
||||
name: "Jane Test",
|
||||
preferred_name: "Jane",
|
||||
timezone: "America/New_York",
|
||||
is_super_admin: false,
|
||||
},
|
||||
}).as("me");
|
||||
|
||||
cy.intercept("GET", `${apiBase}/organizations/me/list*`, {
|
||||
statusCode: 200,
|
||||
body: [
|
||||
{ id: "o1", name: "Personal", role: "owner", is_active: true },
|
||||
],
|
||||
}).as("organizations");
|
||||
|
||||
cy.intercept("GET", `${apiBase}/boards*`, {
|
||||
statusCode: 200,
|
||||
body: {
|
||||
@@ -60,7 +95,7 @@ describe("/boards", () => {
|
||||
cy.visit("/boards");
|
||||
cy.waitForAppLoaded();
|
||||
|
||||
cy.wait(["@boards", "@boardGroups"]);
|
||||
cy.wait(["@membership", "@me", "@organizations", "@boards", "@boardGroups"]);
|
||||
|
||||
cy.contains(/boards/i).should("be.visible");
|
||||
cy.contains("Demo Board").should("be.visible");
|
||||
|
||||
Reference in New Issue
Block a user