mirror of
https://github.com/rustfs/console.git
synced 2026-11-24 21:46:57 +08:00
13 lines
400 B
JavaScript
13 lines
400 B
JavaScript
import test from "node:test"
|
|
import assert from "node:assert/strict"
|
|
import fs from "node:fs"
|
|
|
|
const css = fs.readFileSync("app/globals.css", "utf8").replace(/\r\n/g, "\n")
|
|
|
|
test("enabled buttons show a pointer cursor like links do", () => {
|
|
assert.match(
|
|
css,
|
|
/@layer base \{[\s\S]*:is\(button, \[role="button"\]\):not\(:disabled, \[aria-disabled="true"\]\) \{\s*cursor: pointer;/,
|
|
)
|
|
})
|