mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-09 14:22:53 +00:00
fix: remove npx from build script
Use `tailwindcss` directly in the `build:css` script instead of `npx tailwindcss`. This ensures the local binary (installed in `node_modules/.bin`) is used, avoiding potential `npx` path resolution failures or network requests in restricted CI environments (like Netlify). Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
a512f94023
commit
36ddbe7df2
4 files changed
+34
-46
No files matched your search
@@ -11,6 +11,11 @@ declare global {
|
||||
|
||||
test.describe("overlay layering tokens", () => {
|
||||
async function dismissDisclaimerModal(page: Page) {
|
||||
const modal = page.locator("#disclaimerModal");
|
||||
if ((await modal.count()) === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
await page.evaluate(() => {
|
||||
try {
|
||||
window.localStorage?.setItem("hasSeenDisclaimer", "true");
|
||||
@@ -27,16 +32,11 @@ test.describe("overlay layering tokens", () => {
|
||||
document.body?.classList.remove("modal-open");
|
||||
});
|
||||
|
||||
// Check if the modal exists in the DOM before waiting for it to be hidden.
|
||||
// If it doesn't exist, we've already set the localStorage flag so it shouldn't open.
|
||||
const modal = page.locator("#disclaimerModal");
|
||||
if ((await modal.count()) > 0) {
|
||||
await page.waitForFunction(() =>
|
||||
Array.from(document.querySelectorAll("#disclaimerModal")).every(
|
||||
(modalElement) => modalElement.classList.contains("hidden")
|
||||
)
|
||||
);
|
||||
}
|
||||
await page.waitForFunction(() =>
|
||||
Array.from(
|
||||
document.querySelectorAll("#disclaimerModal")
|
||||
).every((modalElement) => modalElement.classList.contains("hidden"))
|
||||
);
|
||||
}
|
||||
|
||||
test("mobile sidebar shares desktop rail behavior", async ({ page }) => {
|
||||
|
||||
Reference in new issue
Block a user