Skip to content
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

Closed
manphannvg opened this issue Jan 2, 2019 · 10 comments
Closed
Labels
topic: 😳 whoops there is no test to run Error msg: "Whoops there is no test to run"

Comments

@manphannvg
Copy link

manphannvg commented Jan 2, 2019

Current behavior:

See video here

image

Desired behavior:

It should works properly

Steps to reproduce: (app code and test code)

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)
      })

'Whoops, there is no test to run' screen returned after click '.form--submit' element

Versions

3.1.4 both electron 59 and chrome 71

@jennifer-shehane
Copy link
Member

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?

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label Jan 3, 2019
@manphannvg
Copy link
Author

manphannvg commented Jan 4, 2019

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,
Man Phan

@jennifer-shehane jennifer-shehane added the topic: 😳 whoops there is no test to run Error msg: "Whoops there is no test to run" label Jan 8, 2019
@manphannvg
Copy link
Author

Hi @jennifer-shehane,
CC @brian-mann

Do you have any update for this issue?

Thanks,
Man Phan

@jennifer-shehane
Copy link
Member

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

screen shot 2019-01-30 at 12 09 12 pm

@tcoldmf
Copy link

tcoldmf commented Apr 23, 2019

I have the same problem with a simple login form (not iframe). The login is static, no a javascript form.

@jennifer-shehane
Copy link
Member

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. 🙏

@jennifer-shehane jennifer-shehane removed the stage: needs information Not enough info to reproduce the issue label Apr 24, 2019
@tcoldmf
Copy link

tcoldmf commented Apr 25, 2019

I have fixed my problem: I had an attribute target="_ top" in the form tag.

@magicspon
Copy link

@manphannvg did you manage to get a fix for this?

@lpleo
Copy link

lpleo commented Nov 6, 2019

I had the same problem, target '_top' attribute without any iframe. I removed the attribute and now works fine.

@jennifer-shehane
Copy link
Member

jennifer-shehane commented Jan 3, 2020

Essentially a similar issue as #3121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: 😳 whoops there is no test to run Error msg: "Whoops there is no test to run"
Projects
None yet
Development

No branches or pull requests

5 participants