-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cypress return 'Whoops, there is no test to run' after submiting an iframe #3051
Comments
Hey @manphannvg, this definitely shouldn't be happening. Unfortunately, we'll be unable to look at the issue without being able to reproduce this locally. Can you provide some test code that we can run exactly on our machine to experience this issue? |
Hi @jennifer-shehane , Can you try to reproduce this this test code? it("iframe - test", function () {
cy.visit('https://www.immoscout24.ch/private/login')
cy.get("[id='LoginDataModel_LoginName']").type('cypress_test@gmail.com')
cy.get("[id='LoginDataModel_Password']").type('Aa123456')
cy.get(".button.submit").first().click()
cy.get(".hub-object-management")
cy.visit("https://www.immoscout24.ch/private/insertion/final/5302048")
cy.get('.credit-card').click()
cy.get('.button.step-continue').click()
cy.wait(9000)
cy.get("#datatransPaymentFrame").then(($iframe) => {
const $body = $iframe.contents().find('body')
let stripe = cy.wrap($body[0])
stripe.find('li.payment-list--item').eq(0).click()
stripe = cy.wrap($body[0])
stripe.find('#cardNumber').eq(0).type("5200000000000007", { force: true })
stripe = cy.wrap($body[0])
stripe.find('#expiry').eq(0).type("122019", { force: true })
stripe = cy.wrap($body[0])
stripe.find('#cvv').eq(0).type("133", { force: true })
stripe = cy.wrap($body[0])
stripe.find('.form--submit').click({ force: true })
})
cy.wait(5000)
}) Thanks, |
Hi @jennifer-shehane, Do you have any update for this issue? Thanks, |
Hey @manphannvg, could you please double check the tests you provided? I am getting a timeout when running these tests locally in Electron & Chrome. Also, you may want to look through our workarounds when behind corporate proxy is you are behind a corporate proxy: #1469 My failure |
I have the same problem with a simple login form (not iframe). The login is static, no a javascript form. |
Unfortunately we have to close this issue as there is not enough information to reproduce the problem. Please comment in this issue with a reproducible example and we will reopen the issue. 🙏 |
I have fixed my problem: I had an attribute |
@manphannvg did you manage to get a fix for this? |
I had the same problem, target '_top' attribute without any iframe. I removed the attribute and now works fine. |
Essentially a similar issue as #3121 |
Current behavior:
See video here
Desired behavior:
It should works properly
Steps to reproduce: (app code and test code)
'Whoops, there is no test to run' screen returned after click '.form--submit' element
Versions
3.1.4 both electron 59 and chrome 71
The text was updated successfully, but these errors were encountered: