swift-controller-90067
06/30/2022, 10:25 AMmagnificent-finland-58048
06/30/2022, 10:45 AMmagnificent-finland-58048
06/30/2022, 10:45 AMpolite-breakfast-98741
06/30/2022, 10:49 AMmagnificent-finland-58048
06/30/2022, 10:51 AMpolite-breakfast-98741
06/30/2022, 10:53 AMmagnificent-finland-58048
06/30/2022, 10:55 AMcomponent-index.html
inside body, outside divpolite-breakfast-98741
06/30/2022, 10:57 AMmagnificent-finland-58048
06/30/2022, 10:58 AM<body>
<MyThemeProvider>
<div data-cy-root></div>
</MyThemeProvider>
</body>
I haven't tried this , but it's worth trying itmagnificent-finland-58048
06/30/2022, 10:59 AMpolite-breakfast-98741
06/30/2022, 10:59 AMmagnificent-finland-58048
06/30/2022, 10:59 AMmagnificent-finland-58048
06/30/2022, 11:03 AMagreeable-painting-90494
06/30/2022, 12:46 PMcypress run
on CI? I'm getting lots of hangs since upgrading to Cy10agreeable-painting-90494
06/30/2022, 12:47 PMDEBUG=cypress:server:util:process_profiler
agreeable-painting-90494
06/30/2022, 12:48 PMagreeable-painting-90494
06/30/2022, 12:48 PMfresh-doctor-14925
06/30/2022, 1:05 PMagreeable-painting-90494
06/30/2022, 1:11 PMswift-controller-90067
06/30/2022, 1:16 PM--entrypoint=""
running /bin/bash
, running npm start
, then opening another terminal and running docker exec -it container_id cypress run
at the same time. that seems to work, but ONLY if i copy the spec files from cypress/e2e to cypress/integration, which is odd, as the latter is a legacy folder, I believe. if I don't do the last step, cypress complains that cypress/integration
is empty!fresh-doctor-14925
06/30/2022, 1:25 PMcypress.config.js
, or are you perhaps passing --spec
in your run command? (Maybe in package.json
?)swift-controller-90067
06/30/2022, 1:26 PMjs
const { defineConfig } = require('cypress')
module.exports = defineConfig({
e2e: {
baseUrl: 'http://localhost:3000/',
setupNodeEvents(on, config) {
// implement node event listeners here
},
},
})
rhythmic-lamp-20079
06/30/2022, 1:56 PMimport 'cypress-iframe';
describe('Install', () => {
it('should install Ricoch agent ', function () {
cy.visit("10.2.4.56").then(() => {
cy.get('frameset')
cy.frameLoaded('frame[title="Header Area"]').then(() => {
cy.iframe('frame[title="Header Area"]')
.find('span')
.contains('Login')
.wait(10000)
.click({force: true})
.wait(10000);
})
})
})
})
Test correctly visit web app, get frameset, load frame, and find span, but when I want to click "Login" button the test shuts down, and it says that there is no test.
Web code:
https://ibb.co/3BfLBc4
Test timeline:
https://ibb.co/Ypp363K
After second wait(1000)
https://ibb.co/bs66fCj
"dependencies": {
"cypress": "9.6.1",
"cypress-iframe": "^1.0.1"
},
adventurous-dream-20049
06/30/2022, 2:16 PMlate-planet-4481
06/30/2022, 3:05 PMcy.
commands are enqueued and run in sequence, so you don't need to use .then()
unless you want to incorporate the previous command's yield with standard JavaScript.
So your test could be re-written as follows:
js
import 'cypress-iframe';
describe('Install', () => {
it('should install Ricoch agent ', function () {
cy.visit("10.2.4.56")
cy.get('frameset')
cy.frameLoaded('frame[title="Header Area"]')
cy.iframe('frame[title="Header Area"]')
.find('span')
.contains('Login')
.wait(10000)
.click({force: true})
.wait(10000);
})
})
rhythmic-lamp-20079
06/30/2022, 3:10 PMfull-gold-69746
06/30/2022, 3:23 PMcy.origin
with GitHub authentication. I am getting blocked with GitHub firing off a 2FA even though it is disabled for the user I am testing withagreeable-painting-90494
06/30/2022, 4:21 PM"after each" hook in "{root}"
error quite regularly, what does it actually mean? Is that an aftereach in one of the plugin / support files is failing?swift-angle-95455
06/30/2022, 5:41 PMstale-wire-41120
06/30/2022, 7:55 PM