Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
const sourcePath = path.resolve(process.cwd(), "apps/web/app/components/entities/rows/RowSettingsPermissions.tsx");
|
||||
|
||||
describe("row permissions i18n", () => {
|
||||
it("uses semantic translation keys for creator and owner labels", () => {
|
||||
const source = fs.readFileSync(sourcePath, "utf8");
|
||||
|
||||
expect(source).toContain("models.row.permissionLabels.creator");
|
||||
expect(source).toContain("models.row.permissionLabels.owner");
|
||||
expect(source).not.toContain("<span>Creator</span>");
|
||||
expect(source).not.toContain('name: "Owner"');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user