Comments (4)
Hey @zagnut007 👋
Thanks for the issue! Do you know of any previous versions of UUID where this did work by chance? Going back a few major versions of the library, I can reproduce this - unsure if this is from UUID getting newly pulled in by cypress or this was previously working on an older version of UUID.
Interestingly enough, this doesn't seem to reproduce on Node 20, but does on Node 18 🤔
from stencil.
I didn't try on any older versions of UUID. I am using version 12 of Cypress and everything is working. It's only upgrading to the next major version that introduces the collision.
from stencil.
Gotcha, thanks! Would it possible to pull in a polyfill for crypto if you're stuck (I assume) on Node 18?
I'm going to label this to get in our backlog for someone to take a closer look
from stencil.
It seems I am not able to reproduce this anymore. This even works for me with Node.js v16. I am also using Mac with an M2 chip and am getting:
❯ nvm use 18
Now using node v18.20.2 (npm v10.5.0)
❯ npm test
> [email protected] test
> stencil test --spec --e2e
[55:48.5] @stencil/core
[55:48.7] v4.12.4 🐮
[55:48.7] testing e2e and spec files
[55:49.4] build, example, dev mode, started ...
[55:49.5] transpile started ...
[55:50.5] transpile finished in 928 ms
[55:50.5] copy started ...
[55:50.5] generate custom elements + source maps started ...
[55:50.5] generate hydrate app started ...
[55:50.5] generate lazy + source maps started ...
[55:50.6] copy finished (0 files) in 118 ms
[55:50.8] generate custom elements + source maps finished in 309 ms
[55:51.0] generate lazy + source maps finished in 505 ms
[55:51.0] generate hydrate app finished in 506 ms
[55:51.0] build finished in 1.65 s
[55:51.0] jest args: --spec --e2e --max-workers=8
FAIL src/components/my-component/my-component.e2e.ts
● my-component › renders changes to the name data
expect(received).toEqual(expected) // deep equality
Expected: "Hello, World! I'm "
Received: "Hello, World! I'm afd57d48-f781-4c4d-bed2-8d74ca2c521f"
16 | const component = await page.find('my-component');
17 | const element = await page.find('my-component >>> div');
> 18 | expect(element.textContent).toEqual(`Hello, World! I'm `);
| ^
19 |
20 | component.setProperty('first', 'James');
21 | await page.waitForChanges();
at Object.<anonymous> (src/components/my-component/my-component.e2e.ts:18:33)
Compiling works too:
❯ node -v
v18.20.2
❯ npm run build
> example@0.0.1 build
> stencil build
[57:14.5] @stencil/core
[57:14.7] v4.12.4 🐮
[57:15.3] build, example, prod mode, started ...
[57:15.3] transpile started ...
[57:16.5] transpile finished in 1.19 s
[57:16.5] copy started ...
[57:16.5] generate custom elements + source maps started ...
[57:16.5] generate hydrate app started ...
[57:16.5] generate lazy + source maps started ...
[57:16.6] copy finished (0 files) in 102 ms
[57:17.0] generate custom elements + source maps finished in 471 ms
[57:17.0] generate hydrate app finished in 471 ms
[57:17.0] generate lazy + source maps finished in 475 ms
[57:17.0] build finished in 1.71 s
Anything I am missing?
from stencil.
Related Issues (20)
- bug: `E2EPage.find()` throws error when using piercing selector targeting a non-existing element HOT 2
- bug: Unit test --watchAll argument parsed incorrectly HOT 2
- feat: dark mode support for dev server
- feat: Remove mutable props concept
- bug: Adding Storybook with Vite options fails HOT 1
- feat: Solidjs output adapter HOT 1
- bug: E2EElement.triggerEvent omits event details functions HOT 1
- feat: support prop casing for SVG attributes HOT 1
- bug: events with `dispatchEvent()` do not reach a parent's event handler that was added with `addEventListener()` in a Spec Page HOT 2
- bug: dist-custom-elements with customElementsExportBehavior: "single-export-module" does not execute globalScript HOT 4
- bug: cannot get value of inherited custom CSS prop in a shadow DOM element via `E2EElement` APIs HOT 2
- cannot identified the prompts.js as a function?? HOT 17
- bug: generated filename is too long HOT 3
- bug: missing root element's scope id as classname in nested child HOT 4
- bug: Failing to load a nested component hides all parents HOT 1
- bug: child input element is receiving un-wanted props HOT 11
- bug: watchIgnoredRegex is not respected during `stencil build --watch`
- bug: puppeteer: piercing on level 1 breaks HOT 8
- bug: `autofocus` prop/attr is defined on other HTML attribute types instead of `HTMLAttributes` HOT 2
- bug: HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stencil.