style: match market actions to native primary buttons

This commit is contained in:
2026-04-23 17:00:38 +08:00
parent bee8cb0207
commit fb45f0cea8
2 changed files with 51 additions and 0 deletions
+11
View File
@@ -245,6 +245,17 @@ describe("market-content-entry", () => {
expect(document.querySelector('[data-plugin-export="button"]')).not.toBeNull();
expect(document.querySelector('[data-plugin-batch-submit="button"]')).not.toBeNull();
expect(document.querySelector('[data-plugin-export-status="text"]')).not.toBeNull();
const exportButton = document.querySelector(
'[data-plugin-export="button"]'
) as HTMLButtonElement | null;
const batchSubmitButton = document.querySelector(
'[data-plugin-batch-submit="button"]'
) as HTMLButtonElement | null;
expect(exportButton?.style.backgroundColor).toBe("rgb(254, 52, 110)");
expect(batchSubmitButton?.style.backgroundColor).toBe("rgb(254, 52, 110)");
expect(exportButton?.style.color).toBe("rgb(255, 255, 255)");
expect(batchSubmitButton?.style.color).toBe("rgb(255, 255, 255)");
});
test("remounts the plugin action bar when the native market action row appears later", async () => {