Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
23 views

Any way to generate testid automatically in react? [closed]

I'm now using playwright test generator, it's convenient, but I think the generated test case is fragile due to getByRole and getByPlaceholder selector. For example, some search engine will use ...
Roller Roman's user avatar
0 votes
0 answers
21 views

Multiple Hosts/Shell Applications With Nx Micro Frontends

I have studied the docs and tutorials of Nx and Micro Frontends and here is the use case am trying to solve with Nx micro frontends. I want to use Nx micro frontends to implement a multi application ...
Eddy Freeman's user avatar
  • 3,291
0 votes
0 answers
21 views

`async` test of a Fastify backend with `@fastify/websocket` times out, but also finishes

I'm trying to test (using Vitest) a part of my Fastify app that uses @fastify/websocket (and transitively ws), but my tests keep timing out despite running to completion. Here's a relevant excerpt ...
JesseTG's user avatar
  • 2,173
-2 votes
0 answers
33 views

Completely LOST trying to understand why my module isn't exporting anything

Note: As far as I know there isn't a way to include a reproducible, self contained example when working with modules/multiple files. If so, please clue me in and I'll try to supply a complete example. ...
NV_steve's user avatar
0 votes
0 answers
18 views

How to handle E2E API Request in Backend correctly?

I have set up an api backend using FastAPI. Backend testing has been done already. But I don't know how to test the frontend correctly which is usign the api. Because I want at least one test that is ...
Clyde's user avatar
  • 63
-2 votes
0 answers
21 views

Suspension of Async Functions [closed]

I am curious as to where does the async function that is suspended go to? I assume it’s in the call stack, but since it’s suspended it gets popped off “somewhere”, and the event loop does something ...
TeisqI's user avatar
  • 111
-1 votes
0 answers
31 views

Using cypress to automate e2e Stripe Embedded Checkout

I'm using Stripe's embedded checkout which adds an iframe. Is it possible to use Cypress to automate that so I can make full e2e purchase tests? I've tried this, by cy.origin fails to load. cy.get('...
d-_-b's user avatar
  • 23.2k
0 votes
1 answer
26 views

WKWebView highlight restoration works on simple sites but fails inconsistently on complex sites

I’m building an iOS app that allows users to highlight text in web articles. These highlights are saved to the user’s knowledge base. The workflow is: Load an article in a WKWebView (...
byaruhaf's user avatar
  • 4,883
-1 votes
0 answers
21 views

React Native Expo Screen Freeze

I'm new to React Native and building an app with an onboarding screen. I'm experiencing a frustrating issue where my FlatList-based swiper freezes after a few swipes, making the entire screen ...
Siya Nxuseka's user avatar
0 votes
0 answers
43 views

Get date from TimeStampToken equivalent in Typescript

I have a web service that returns a Timestamp Token as a base64 string, I have this code in Java using BouncyCastle to parse, open and extract the date: String timestamp = "..."; byte[] ...
Alfredo Morales's user avatar
0 votes
0 answers
48 views

How to buffer raw HTTP response data? [closed]

I want to buffer raw HTTP response data using TypeScript. How can I do this? My code: import { HTTPResponse } from "raw-http-parser"; const result = response.data; const responseBuffer = ...
Chris Hansen's user avatar
  • 8,777
0 votes
0 answers
46 views

Generic mongoose dynamic module cannot inject options

I wanna have a dynamic module which should take care of registering mongoose for me. Right now I have a problem with injecting the options asynchronously when I am invoking MongooseModule.forRootAsync(...
Mohammad Jawad Barati's user avatar
-1 votes
0 answers
32 views

How to integrate TradingView Lightweight Charts with live & historical XAU/USD (Gold) data in React.js?

I’m trying to build a chart in React.js using the Lightweight Charts library from TradingView. My requirements are: 1.Show historical data for XAU/USD (Gold) when the page loads. 2.Keep updating the ...
Takbeer Ali's user avatar
2 votes
1 answer
48 views

jQuery.trim() deprecated, but suggested replacement isn't the same?

The following code: if (!value || $.trim(value).length === 0) return true; Produces the following warning. (JS) The signature '(str: string): string' of '$.trim' is deprecated. The recommended ...
Jonathan Wood's user avatar
0 votes
1 answer
62 views

How to set up a responsive layout that wraps based on content width/wrapping instead of css breakpoints?

I have a vue.js component with a toolbar that contains three sections: actions, filters, and search with buttons. The current implementation uses css breakpoints to control layout ordering, but this ...
Egorallo's user avatar
-4 votes
0 answers
37 views

I am having trouble deploying a basic Next.js project to a shared hosting environment using cPanel. after installing npm, I get a 503 response [closed]

I am having trouble deploying a basic Next.js project to a shared hosting environment using cPanel. The project works fine in development locally, but when I try to deploy it on cPanel, I get a 503 ...
MD Sakib's user avatar
-2 votes
0 answers
46 views

JS formula for mix-blend multiply [closed]

How works css blend-mode multiply for colors with opacity (looking for js function of multiplyColor)? In the example below look on the first and the second paragraphs. In the first paragraph used css ...
user1356144's user avatar
1 vote
4 answers
94 views

How to store a function's randomly selected message and not have it change upon refreshing the page?

I've got a function in my script.js that randomly selects one message from an array called content. It then displays that selected message on a page called start.html in a span element with the id &...
ShiftyKeys's user avatar
-1 votes
1 answer
83 views

html/colors: how found color for inverted multiply

Have div with color rgba(255, 14, 188, 0.28), some times this div overlapped with another div with background color rgba(165, 218, 255, 0.698) with mix-blend-mode: multiply Now I want to find the ...
user1356144's user avatar
4 votes
3 answers
95 views

Images blocking the navigation buttons

The image is blocking access when click on links. I need a guidance with getting the navigation hovering to work. Is there a way to get the image to stay in front of the navigation bar without it ...
Offiz exe's user avatar
1 vote
2 answers
101 views

How to scrollIntoView center element horizantally in old browser?

I'm developing web application for old SmartTv's. I'm using scrollIntoView code in Javascript and use block: "center". It goes to element and align horizontally of screen. It works well on ...
Ahmet Yılmaz's user avatar
0 votes
0 answers
68 views

401 Unauthenticated Error while calling cloud functions in Google Firebase

When I am trying to call a firebase cloud function from my react.js frontend using the onCall method, I am getting a 401 Error getting reply- User not authenticated error. I know this question has ...
anish's user avatar
  • 27
0 votes
2 answers
47 views

DaisyUI theme not applying, always shows default theme in Laravel + Vite + TailwindCSS

I am working on a Laravel project with Vite, TailwindCSS, and DaisyUI. I want to apply the "corporate" theme globally, but all DaisyUI components still appear with the default theme styling. ...
Muhammad Sameed's user avatar
-3 votes
1 answer
89 views

How to replace first 3 digits, then set a Point and then set a point all second digit?

I have a random Number from Database. For Example: 123456789 My output should look like this: 123.45.67.89. If i have a shorter number - 12345 - the output look like this: 123.45. Or: 8467485 - then ...
Kijupo's user avatar
  • 19
0 votes
1 answer
56 views

Mobile Auto-Scroll Jumps Between Transcript Positions

On mobile, when the transcript scrolls automatically to follow the currently playing dialogue, the view doesn’t stay fixed. Instead, it jumps: First it moves to the current dialogue, then it suddenly ...
reza's user avatar
  • 11
1 vote
1 answer
98 views

Flappy Bird web game runs at different speeds on different mobile devices (not browser/OS related) [closed]

I have a simple Flappy Bird-style game made with HTML, CSS, and JavaScript. The game is already hosted and works fine on desktop browsers. On some mobile devices, the bird moves/falls at the expected ...
Prashil Shah's user avatar
1 vote
0 answers
29 views

FullCalendar v5 resourceTimelineMonth — show a half-month (15-day) range without time slots appearing

I'm using FullCalendar v5 with the resourceTimelineMonth view. I'd like to display a half-month (15-day) range in the calendar. Below is the configuration I'm currently using: resourceTimelineMonth: {...
user31226587's user avatar
1 vote
0 answers
60 views

React + pdf.js: PDF reloads/disappears when starting “calibrate from two points”; can’t change pages afterward. PDF Construction drawing scaling

I’m building a browser tool that shows big PDF blueprints and lets you measure, with a “Set Scale → Calibrate from two points” flow (click two points on the sheet, enter the real-world distance, and ...
David Czerepak's user avatar
-2 votes
0 answers
91 views

How to show partial cards on this news slider [closed]

I created a news slider and I'm not sure why I'm not able to show partial cards on the right without breaking the layout (creating an unnecessary scrollbar). I hit the AI's but unfortunately non of ...
xake's user avatar
  • 43
0 votes
1 answer
77 views

Why is function not updating the object [closed]

noob here. For the life of me, I cannot figure this one out. Why didn't the changeNum() function change the object to {left: 0, right: 30}? Since changeNum() only changed a property in the object, the ...
Eureka Mark's user avatar
0 votes
0 answers
51 views

Mobile sidebar shifts and screen zooms when focusing an input field (WordPress / custom theme)

A client provided me with a WordPress theme and asked me to make some changes. I’m facing an issue in the header: When I click on the profile icon, a sidebar (profile panel) opens. On desktop: ...
yacine hamiane's user avatar
0 votes
0 answers
74 views

How to keep JS listener on element after request load with HTMX?

I'm working on a data like on screenshot. The form allow to add line and it works great. Here is the code (Symfony + Twig): {{ form_start(parcelForm, {'attr': { 'hx-post': path('app_tableau_order_view'...
Duhamel's user avatar
  • 156
0 votes
0 answers
50 views

Entry gets added to history despite replacing it [closed]

For some reason when updating my query string (which works fine), an item is still added to my browser's history whenever it is updated. My method was to use window.history.replaceState to avoid ...
Chewie The Chorkie's user avatar
-5 votes
0 answers
52 views

How to make mux video seekable? [closed]

I'm using the mux video component in react, and I want to know how to make it seekable, like the user can skip to a specific time in the video. Here's my component where the MuxPlayer is used import ...
user2342348's user avatar
0 votes
0 answers
42 views

Using Google Apps Scripts to process online form [closed]

I could not figure out why these scripts are not working. Basically, the front end form looks good so far, but the OPTIONS from script.google.com reported 405 Status: CROS Missing Allow Origin. ...
PaddyRice's user avatar
1 vote
0 answers
48 views

sanitize-html shows "Module 'path' has been externalized" warnings — how to hide them?

I’m using sanitize-html in my Angular app (with Vite), and I don’t want to replace it because it works great. Packages: "@types/sanitize-html": "^2.16.0", "sanitize-html":...
Jon's user avatar
  • 401
-1 votes
1 answer
50 views

Issues with an email forwared working on Google Sheets

Javascript code that needs to send an email to a specific email from a column list (B). Whenever there is a change between comluns H to M in my Google Sheets. Expected Result: The code should send a ...
Momohan's user avatar
0 votes
1 answer
96 views

How to launch the server part of PHP via JS in the codeigniter framework? [duplicate]

The problem is that I don't quite know how to do it correctly so that it doesn't look like a crutch, so to speak, I have a function in codeigniter4 in the libraries library -> and I need to run it ...
qboshenkiy0_ Shirufietto's user avatar
-5 votes
0 answers
51 views

Time slot availability with multiple dates and times [closed]

(Sorry for long post in advance). I want to create a time slot endpoint which will return all the available time slots. If the role (OrgRole) is "tech", my current code is okay. The problem ...
ImDarkk's user avatar
  • 233
0 votes
0 answers
56 views

Issue in sending binary image data (LONGBLOB in MySQL, Bytes in Prisma) to my front-end as a PNG

So, I have an issue with my Fullstack app, in which I have "images" in my "log" database stored as bytes that contains data to my PNG images in my database. I however cannot load ...
YoNoms's user avatar
  • 1
0 votes
1 answer
61 views

Show a similar type of error that min/max shows, if input start time > input end time [closed]

In the following code, the morning start time is allowed to be later than the morning and time. I want to show a similar type of error like my min/max JavaScript shows, if morning/afternoon start is ...
Benwhittaker25's user avatar
0 votes
1 answer
56 views

How to properly handle onBlur with MUI <DatePicker />

I'm using MUI's <DatePicker /> integrated with Formik, and I want to mark the field as touched only when the user has finished interacting with the date picker — not immediately when it gains ...
Minh's user avatar
  • 765
2 votes
2 answers
85 views

Decorator isn't valid inside of <script> in blade.php

I don't get it why it keep returning decorators are not valid here inside of a blade.php file the @json($roles), @json($units), and @json($vendors) keep being red underlined as decorators are not ...
Ruby Calderon's user avatar
0 votes
0 answers
46 views

Playwright soft assertion shows unrelated hortReject TypeError instead of actual assertion error

I’m facing an issue with Playwright’s expect.soft where, if a promise is not resolved, the test continues execution as expected (because of the soft assertion). But at the end of the run, instead of ...
Eswar's user avatar
  • 21
-6 votes
1 answer
96 views

Why does setTimeout(..., 0) log before fetch in browser, but changing to 1ms changes the order? And why is it always before in Node.js? [closed]

I’m trying to understand the execution order between setTimeout and fetch callbacks in JavaScript. Here’s my minimal reproducible example: function timer() { setTimeout(() => { console.log("...
gautam purohit's user avatar
0 votes
0 answers
30 views

Is it possible to get a mean NDVI timeseries from from cluster?

I have a GEE code that does unsupervised clustering in an area. I want to get the mean NDVI values from the cluster in the ROI and create a timeseries chart of the mean values rather than per cluster ...
Simba's user avatar
  • 1
1 vote
1 answer
113 views

Why does passing a Map.entries() iterator as child to a Collaspsible from shadcn render nothing unless I wrap it with Array.from()?

I’m using shadcn/ui with Radix UI’s Collapsible to make a collapsible filter section. Wrapper component: import { ReactNode, useEffect, useState } from "react"; import { Collapsible, ...
musketeerdt's user avatar
1 vote
0 answers
55 views

VSCode only checks JSDoc in files that are currently open. How do I make it check the entire project?

Currently, VSCode only recognizes JSDoc @typedef declarations in files that are open. For example, if I have a @typedef comment in a file that is NOT currently open in VSCode, VSCode thinks the type ...
user3163495's user avatar
  • 3,842
1 vote
0 answers
44 views

Shiny App Crashes on Plotly Box Selection for Event Data [closed]

I'm building a Shiny app with two tabs for visualizing time-series data using Plotly. The data is a simple data table with 5 columns (1 time variable in "%Y-%m-%d %H:%M:%S" format and 4 ...
ACE's user avatar
  • 365
0 votes
1 answer
56 views

Mocking JavaScript's Performance Object [closed]

I'm upgrading an old node project from v18 to v22 and killed all of the existing mocha test cases for an implementation of lru-cache. I was at a loss as to why this happened, but on closer inspection ...
stakolee's user avatar
  • 968

1
2 3 4 5
…
50574