calm-doctor-58650
12/03/2021, 6:53 PMcalm-doctor-58650
12/03/2021, 7:04 PMcalm-doctor-58650
12/03/2021, 7:07 PMancient-wire-34126
12/03/2021, 7:24 PMfindComponent
?wonderful-match-15836
12/04/2021, 4:13 PMfindComponent
itself, since the vue test utils wrapper is available under Cypress.vueWrapper
. Would that work for you?ancient-wire-34126
12/04/2021, 10:17 PMhigh-salesmen-41114
12/06/2021, 9:54 AM\\
. See it here: https://www.loom.com/share/d3b96bce76e54dc3acfad09435d99227 All the backslashes are stripped out when logging or checking what happened.
/// <reference types="Cypress" />
describe('Backslash', function () {
it('Can\'t type backslash', function () {
// Login
cy.visit('https://getbootstrap.com/docs/4.0/components/forms/', { onBeforeLoad: (win) => { win.sessionStorage.clear() } })
cy.get('#exampleInputPassword1').type('F-tNzk^*%\\<{0qWs&MPc')
cy.log('F-tNzk^*%\<{0qWs&MPc');
cy.log('F-tNzk^*%\\<{0qWs&MPc');
cy.log('F-tNzk^*%\\\<{0qWs&MPc');
})
});
proud-room-838
12/06/2021, 12:03 PMproud-room-838
12/06/2021, 12:03 PMproud-room-838
12/06/2021, 12:19 PMcy.myproject.addLeadingZeroIfNeeded = function(number) {
Had to add cy.myproject in order to be able to use it. Why's that?creamy-train-56346
12/06/2021, 1:11 PMdata-test
attributes for each entry in the list. It will let me stay dynamic in my approach. Thanks! And sorry for not satisfying your curiosity about react native app test setup 😉calm-doctor-58650
12/06/2021, 6:25 PMdata-test
attributes is what I'd suggest, because you know exactly which element you're getting each time.calm-doctor-58650
12/06/2021, 6:31 PMcalm-doctor-58650
12/06/2021, 6:41 PMwooden-balloon-68677
12/06/2021, 10:32 PMwooden-balloon-68677
12/06/2021, 10:37 PMwindow.localStorage.clear();
in my beforeEach
it works. But it suppose to work without it: https://docs.cypress.io/api/commands/clearlocalstorage as stated in docswooden-balloon-68677
12/06/2021, 11:13 PMwooden-balloon-68677
12/06/2021, 11:13 PMproud-room-838
12/07/2021, 8:03 AMproud-room-838
12/07/2021, 8:08 AMflaky-television-87833
12/07/2021, 8:57 PMflaky-television-87833
12/07/2021, 9:01 PMGiven('I am on the "user-login" page', () => {
cy.visit("http://localhost:8080/user-login")
cy.title().should('eq',"User Login Page")
})
When('I enter "George312"', () => {
cy.get('input[type="text"]').should("be.visible").type("George312")
})
And('I enter "hsj%2*sc5$"', () => {
cy.get('input[type="password"]').should("be.visible").type("hsj%2*sc5$")
})
And('I Click the "Submit" button', () => {
cy.intercept("GET", "api/users", (req) => {
req.reply(
{
"body": { "isAuthenticated": true}
}
)}
).as("loginUser")
cy.get('button[id="LoginBtn"]').should('be.visible').click()
cy.wait(2000)
cy.wait("@loginUser")
})
Then('I should see written in a window user "George312 is now logged in!"', () => {
cy.get("p").contains('user "George312 is now logged in!"').should("be.visible")
})
// // // #############################################
Given('I am on the "user-login" page', () => {
cy.visit("http://localhost:8080/user-login")
cy.title().should('eq',"User Login Page")
})
When('I enter "George312"', () => {
cy.get('input[type="text"]').should("be.visible").type("George312")
})
And('I enter "hsj%2*sc5$3"', () => {
cy.get('input[type="password"]').should("be.visible").type("hsj%2*sc5$3")
})
And('I Click the "Submit" button', () => {
cy.intercept("GET", "**/api/users/**", (req) => {
req.reply(
{
"body": { "isAuthenticated": false}
}
)}
).as("loginUserWrong")
cy.get('button[id="LoginBtn"]').should('be.visible').click()
cy.wait(2000)
cy.wait("@loginUserWrong")
})
Then('I should see written in a window user "Login Failed! wrong password"', () => {
cy.get("modal").contains("Login Failed! User is not registered")
})
flaky-television-87833
12/07/2021, 9:12 PMancient-wire-34126
12/07/2021, 9:20 PM{space}
as a keyboard command?
It's a pretty widely-used key to trigger things like dropdowns (and really any other focussable DOM element)ancient-wire-34126
12/07/2021, 9:43 PMtype(' ')
will do lolcalm-gpu-44530
12/08/2021, 9:01 AMuser
12/08/2021, 4:57 PMECONNREFUSED
with both firefox and chromium, I'm using cypress 9.1.1
on popOs
I though it was a misconfiguration in my project but I'm having the same issue with the cypress-example-recipes repo as well.
I've used it on multiple projects but first time being blocked by that.
here is an excerpt of the error:cuddly-winter-72122
12/08/2021, 9:32 PMcuddly-winter-72122
12/08/2021, 9:32 PMtall-airplane-97209
12/08/2021, 10:05 PM