Comments (7)
Facing same issue
from agent-js-cypress.
Hi, when will this issue fix be merged to the master? We are facing the same issue.
from agent-js-cypress.
Fixed in 5.0.3.
from agent-js-cypress.
I have this issue with cypress 12.17.1
from agent-js-cypress.
Hello @AnkaNik !
Which version agent-js-cypress are you using?
Please note we've added the logDebug
command instead of overriding default Cypress debug
.
from agent-js-cypress.
Hello @AnkaNik ! Which version agent-js-cypress are you using? Please note we've added the
logDebug
command instead of overriding default Cypressdebug
.
Im not sure that I know how to find it because just start use it after long pause)
I face problem with error :
CypressError: The following error originated from your test code, not from Cypress.
> `Cypress.Commands.addQuery()` is used to create new queries, but `findAllByLabelText` is an existing Cypress command or query, or is reserved internally by Cypress.
If you want to override an existing command or query, use `Cypress.Commands.overrideQuery()` instead.
When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.
Cypress could not associate this error to any specific test.
We dynamically generated a new test to display this failure
```.
when try to run synpress in my project.
I've got all configuration setup as it is on tutorials, but when try to run `synpress run --configFile synpress.config.js` cypress loads and failed with error on a first step with initiated command for running metamask setup from synpress.
My expectation was, that if I put inside support files import of synpress it will run smoothly))
here is **cypress/suport.index.js** file:
_import "./commands.js"_
_import "@synthetixio/synpress/support"_
**cypress/support/commands.js**
_import "@testing-library/cypress/add-commands";_
// here go(es) your custom function(s)
_import "@synthetixio/synpress/support";_
**synpress.config.js** file:
_const { defineConfig } = require("cypress");
module.exports = defineConfig({
userAgent: "synpress",
retries: {
runMode: 0,
openMode: 0,
},
screenshotsFolder: "screenshots",
videosFolder: "videos",
video: true,
chromeWebSecurity: true,
viewportWidth: 1466,
viewportHeight: 1200,
env: {
coverage: false,
},
defaultCommandTimeout: 30000,
pageLoadTimeout: 30000,
requestTimeout: 30000,
component: {
setupNodeEvents(on, config) {},
specPattern: "./**/*spec.{.cy.js,jsx,ts,tsx}",
},
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
},
supportFile: "cypress/support/index.js",
},
});_
test file is **cypress/e2e/app/login.cy.js**
describe('Metamask Extension tests', () => {
// Define the test case "connect to DApp with Metamask extension example"
it('connect to DApp with Metamask extension example', () => {
// Add a new network to Metamask using the `cy.addMetamaskNetwork()` command
cy.addMetamaskNetwork({
networkName: 'Optimism Goerli',
rpcUrl: 'https://goerli.optimism.io',
chainId: '420',
symbol: 'ETH',
blockExplorer: 'https://goerli-optimism.etherscan.io/',
isTestnet: true,
})
// Visit the root URL of the DApp
cy.visit('/myURL');
//wait until it will be loading
cy.wait(9000);
cy.get('#accept-all-cookies').click();
// Click the "Connect" button on the DApp
cy.get('#heap-connect-wallet').click();
cy.get('#metamask').click();
Maybe something I miss in configuration that is why it does not recognise correct commands..
Thanks!
from agent-js-cypress.
I don't see any usages of our library (agent-js-cypress), so the issue is not related to this repo.
Anyway, looks like you need to check "./commands.js" or "@synthetixio/synpress/support" that you mentioned in cypress/suport.index.js
to find the Cypress command collision.
from agent-js-cypress.
Related Issues (20)
- CVE-2022-23812: remove untrusted dependency - node-ipc HOT 1
- Before hook: Test execution is not stopping automatically in report portal HOT 11
- Unintended behavior of blobbing in get*Screenshot methods causes screenshots not to be found.
- which Cypress Version is supported by this plugin? HOT 7
- Error thrown when spec finishes for new Cypress 10 HOT 5
- Complete set of results not getting pushed into Report Portal. HOT 2
- Test execution doesn't stop when automerge is enable HOT 3
- Lunches are not stopped HOT 5
- Error in auto merge using Cypress flag --config-file HOT 5
- Finish launches and merges HOT 23
- Request failed with status code 405 HOT 4
- [help]: Cypress reports uploading to Report portal does not have screenshots/videos on failure HOT 2
- cy.setStatusPassed(suite) usage throws error, we need to see the steps in the report portal HOT 6
- Is it possible to upload the successful screenshots & videos for test evidence to ReportPortal using cypress? HOT 3
- Is it possible to incorporate this plugin while executions done from cypress open?
- Automatically merge launches custom script is not working HOT 10
- Auto merge: plugin is not installed. Use reporterOptions settings for calculation. Configuration property not set! Neither for cypress <= 9 nor cypress >= 10 HOT 5
- launchId is not working/recognized HOT 1
- Auto merge: plugin is not installed. Use reporterOptions settings for calculation. Configuration property not set! Neither for cypress <= 9 nor cypress >= 10 HOT 10
- Launches do not get merged on parallel execution even though autoMerge flag is set HOT 3
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 agent-js-cypress.