feat: add selected audience profile csv export
This commit is contained in:
@@ -24,4 +24,24 @@ describe("market-auth-gating", () => {
|
||||
expect(createMarketController).not.toHaveBeenCalled();
|
||||
expect(document.body.textContent).toContain("请先登录插件");
|
||||
});
|
||||
|
||||
test("shows an expired login message when auth state reports a token error", async () => {
|
||||
document.body.innerHTML = "<div></div>";
|
||||
|
||||
await bootContentScript({
|
||||
createMarketController: vi.fn(),
|
||||
document,
|
||||
sendAuthMessage: vi.fn(async () => ({
|
||||
ok: true,
|
||||
type: "auth:state",
|
||||
value: {
|
||||
isAuthenticated: false,
|
||||
lastError: "token expired"
|
||||
}
|
||||
})),
|
||||
window
|
||||
});
|
||||
|
||||
expect(document.body.textContent).toContain("登录已过期,请重新登录");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user