10 questions
-1
votes
0
answers
43
views
How can I use a Wrapper Component with Playwright Component Testing?
I'm attempting to test some Vue 3 components using Playwright's component testing feature. My UI library requires that all components be wrapped in a BApp component for certain functionality to work. ...
1
vote
1
answer
62
views
How to run integration/component test from cmd with maven
I am trying to run integration tests from cmd MacOS using maven and the following command:
mvn test -Dspring.profiles.active=component-test -Dspring.config.location=classpath:/src/test/resources/...
-1
votes
1
answer
94
views
Using screen.getByText("With hard coded text") a good practice in Angular testing? [closed]
I am wondering about selecting elements by their text content using screen.getByText. My question is around the reliability of this approach. If the text value changes, the test will fail, which may ...
0
votes
1
answer
492
views
Playwright Component testing requires the use of the defineConfig()
I'm using playwright in order to run tests on my components.
I've installed playwright using this command:
npm init playwright@latest -- --ct
Here's my playywright-ct config file:
import { ...
2
votes
1
answer
242
views
detectChanges() not working in Angular standalone component test
I have written a component test for a simple component which only displays an input field for a property name.
In the component test I'm setting the component's input property name to 'Stephan' and I'...
0
votes
1
answer
898
views
Component vs integration testing
I have this, I know it's a general question, but I've been struggling with it for the last few days and it's getting in the way of my work.
I have a software written in .NET that has 2 parts
The ...
1
vote
1
answer
1k
views
How to specify browser flags for Playwright component tests?
In a Playwright component test, is there a way to pass flags to the browser instance that gets run? For example, for Chrome: --use-fake-ui-for-media-stream, --use-file-for-fake-audio-capture, and ...
0
votes
0
answers
273
views
Cypress Component testing with Cucumber
Does "Cypress Component Testing" support cucumber testing. I know it's possible to run "Cypress e2e" tests with cucumber but I haven't seen anyone try to do the same with "...
0
votes
1
answer
155
views
Mocking in component tests
I am relatively new to component tests and testcontainer, kindly bear with me.
I have the following call structure in my code.
Rest endpoint -> publish jms - > onMessage - > calling a service
...
0
votes
2
answers
703
views
Cypress not picking up html elements
I'm trying to get a handle on a simple html <p> tag using the data-cy attribute:
<p data-cy="register">Register</p>
First I mount the component:
it('mounts', () => {
...