Questions tagged [web-component-tester]

For question about web-component-tester, a tool for testing Polymer-based web components.

web-component-tester is a browser-based testing environment for -based web components, configured out of the box with:

For more details, see

111 questions
0
votes
0 answers

How can I call cloud functions (Firebase) to my cypress tests?

I'm working on e2e testing on cypress. During generating user account details, I need to switch to admin mode from user mode to accept the request of account details request. I want to switch user between the test. We're using firebase. I've tried…
0
votes
0 answers

Loadster scripting- Creating regex using regular expression extractor

I am trying to create a simple script using Loadster tool and I am facing couple of issues. How to create regex and pass it to the next call. I am not able to see request parameter in GET payload. I tried the web version of loadster tool and…
Niki
  • 1
  • 1
0
votes
1 answer

QA Tester Performance Testing

How do I test how the software behaves if several users enter the web site? ex: for example 100 users
0
votes
1 answer

Playwright Component Testing with ContextApi

I have created a small React app and I want to test it using Playwright component testing I have 3 components: App -> ChildComponent -> ChildChildComponent I want to render (mount) the ChildComponent directly, and make assertions on it, but when I…
Amit Cohen
  • 65
  • 1
  • 8
0
votes
1 answer

Cannot use import statement outside a module of axios

while react component testing I'am facing this issue and I don't understand how can i solve this issue. I have added all the necessary elements but still facing this issueenter image description here I'am trying to check react component testing but…
0
votes
1 answer

NX component testing with cypress error process is not defined

I am using NX 14.5.1 and cypress 10.2.0. When I run cypress component testing for "libs/ui" always got "Process not defined" error. In the component call ".env" like this: import consola from 'consola' export const logger = consola.create({ …
Tamtam
  • 13
  • 3
0
votes
1 answer

Test lit-element webcomponent with Karma

I am trying to create a blank project, like a template, using lit-html. I wanted to also add some testing capabilities, so i have been trying to get it to work with Karma. I can run a normal test, like an addition, without any errors, so i think…
0
votes
1 answer

Confused by typescript "import" syntax with compiler options: Module, esnext vs commonjs?

I have a typescript project with some mocha tests, that start like so: import { assert } from "chai"; import "@material/mwc-ripple"; //I want to test a script that uses this describe("simple test", () => { it("works", () => { …
Matthew
  • 10,361
  • 5
  • 42
  • 54
0
votes
1 answer

How to test heading of a react component using jest?

I have a simple component which includes two buttons and the heading field. So far I tested button clicks but I want to test heading text field in the

tag. My component class Popup extends React.Component { render() { return ( …

D.Anush
  • 147
  • 6
  • 15
0
votes
0 answers

How to define 'filter' on WCT?

how to read property 'filter' on WCT I'm getting error when I run WCT "Cannot read property 'filter' of undefined" How can we define a filter on WCT suites
MandaliVenkat
  • 33
  • 2
  • 9
0
votes
1 answer

How to read this.$$('#startdate').value on WCT using polymer

I'm unable to read the value from this.$$('#startdate').value to WebComponentTest(WCT) startDate = this.$$('#startdate').value
MandaliVenkat
  • 33
  • 2
  • 9
0
votes
1 answer

How can I assert for asynchronous `throw`?

I would like to assert that my code does not throw any eventual errors. The problem is: my code performs DOM operations, which triggers asynchronous reactions: const slot =…
0
votes
2 answers

Dealing with element objects that fire on creation

So I have a fixture: I set up the fixture for testing: