release: WRNexusJS 0.8.0
This commit is contained in:
@@ -73,4 +73,42 @@ describe("full app", () => {
|
||||
expect(typeof body.message).toBe("string");
|
||||
expect(body.lang).toBeTruthy();
|
||||
});
|
||||
|
||||
test("language-server playground renders its real interactive output", async () => {
|
||||
const res = await app.fetch("/language-tools");
|
||||
expect(res.status).toBe(200);
|
||||
const html = await res.text();
|
||||
expect(html).toContain("Language server playground");
|
||||
expect(html).toContain("computed double:");
|
||||
expect(html).toContain('data-text="doubled">0</span>');
|
||||
expect(html).toContain('aria-live="polite"');
|
||||
});
|
||||
|
||||
test("login renders real accessible fields without an accidental Card component", async () => {
|
||||
const res = await app.fetch("/login?next=/dashboard");
|
||||
expect(res.status).toBe(200);
|
||||
const html = await res.text();
|
||||
expect(html).toContain('name="email"');
|
||||
expect(html).toContain('name="password"');
|
||||
expect(html).toContain('autocomplete="current-password"');
|
||||
expect(html).not.toContain("Card title");
|
||||
});
|
||||
|
||||
test("platform showcase uses the public layout and styled reactive primitives", async () => {
|
||||
const res = await app.fetch("/platform-showcase");
|
||||
expect(res.status).toBe(200);
|
||||
const html = await res.text();
|
||||
expect(html).toContain("WrNexus");
|
||||
expect(html).toContain('data-wrn-dynamic-component="Admin"');
|
||||
expect(html).toContain('data-wrn-portal="#showcase-modal"');
|
||||
expect(html).toContain("platform-showcase");
|
||||
});
|
||||
|
||||
test("async data page renders its server loader without a cache failure", async () => {
|
||||
const res = await app.fetch("/async-data");
|
||||
expect(res.status).toBe(200);
|
||||
const html = await res.text();
|
||||
expect(html).toContain("Rendered by the server loader");
|
||||
expect(html).toContain("Loading the browser profile");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user