Closed
Description
Current behavior:
- My Cypress file has only three elements; username, pass and login button:
describe('First SF Test', function() {
it('Login SF', function() {
cy.visit('https://iunigo--testing.lightning.force.com/')
cy.get('.username')
.type('services@*****')
cy.get('.password')
.type('******')
cy.get('#Login')
.click()
})
})
-
After Cypress complete the fields and click login, the screen shows "Whoops, there is no test to run" and stop the test.
-
I asked this issue in https://gitter.im/cypress-io/cypress, and someone told me that its because Cypress doesn't allow you to change domains.
-
I tried this, I used my browser, and login as a real human would do, then I copied the url that the authentication generated into the Cypress test to "pre-load" the domain after the login change it, as shown below;
describe('First SF Test', function() {
it('Login SF', function() {
**cy.visit('https://iunigo--testing.lightning.force.com/lightning/r/Policy__c/a0F0m000001uIO6EAM/view')**
cy.get('.username')
.type('services@*****')
cy.get('.password')
.type('******')
cy.get('#Login')
.click()
})
})
- I this case, the message "Whoops, there is no test to run" appears inmediatly after running Cypress.
Desired behavior:
After login Cypress redirect me to SalesForce dashboard.
Steps to reproduce:
Versions
Cypress version 3.0.3, Mac Os, Google Chrome