41 lines
1.3 KiB
JavaScript
41 lines
1.3 KiB
JavaScript
// The Lucia project.
|
|
// Copyright 2026-2026 DSP, inc. All rights reserved.
|
|
// Authors:
|
|
// imacat.yang@dsp.im (imacat), 2026/03/05
|
|
|
|
import { loginWithFixtures } from "../support/intercept";
|
|
|
|
describe("Account Info Modal", () => {
|
|
beforeEach(() => {
|
|
loginWithFixtures();
|
|
cy.visit("/account-admin");
|
|
cy.contains("Test Admin").should("exist");
|
|
});
|
|
|
|
it("double-click username opens info modal with user data", () => {
|
|
cy.get(".account-cell").first().dblclick();
|
|
cy.get("#modal_container").should("be.visible");
|
|
cy.get("#acct_info_user_name").should("exist");
|
|
});
|
|
|
|
it("info modal shows Account Information header", () => {
|
|
cy.get(".account-cell").first().dblclick();
|
|
cy.get("#modal_container").should("be.visible");
|
|
cy.contains("Account Information").should("exist");
|
|
});
|
|
|
|
it("info modal shows account visit info", () => {
|
|
cy.get(".account-cell").first().dblclick();
|
|
cy.get("#modal_container").should("be.visible");
|
|
cy.get("#account_visit_info").should("exist");
|
|
cy.get("#account_visit_info").should("contain", "Account:");
|
|
});
|
|
|
|
it("info modal can be closed via X button", () => {
|
|
cy.get(".account-cell").first().dblclick();
|
|
cy.get("#modal_container").should("be.visible");
|
|
cy.get('img[alt="X"]').click();
|
|
cy.get("#modal_container").should("not.exist");
|
|
});
|
|
});
|