🧞12. Cypress Eşzamansız Davranış(Asynchronous Behavior)
Cypress, JavaScript tabanlı node.js'den türetilmiştir. Cypress komutları, node sunucusuna bağımlı oldukları için doğası gereği senkrondur. Asenkron akış test adımının yürütme için önceki adıma bağlı o
describe("async ous behavior", () => {
it("senerio 1", () => {
// test step to launch a URL
cy.visit("https://accounts.google.com")
// identify element
cy.get('h1#headingText').find('span').should('have.text', 'Signin')
cy.get('h1#headingText').find('span')
.then(() => {
const t = e.text()
//get in console
console.log(t)
})
console.log("cypress notlari")
})
})
Promise
Modes in Promise
Example for Promise in Cypress:
Last updated