diff --git a/12.-cypress-eszamansiz-davranis-asynchronous-behavior.md b/12.-cypress-eszamansiz-davranis-asynchronous-behavior.md index de1b3c3..8378cca 100644 --- a/12.-cypress-eszamansiz-davranis-asynchronous-behavior.md +++ b/12.-cypress-eszamansiz-davranis-asynchronous-behavior.md @@ -5,7 +5,7 @@ description: >- adımının yürütme için önceki adıma bağlı o --- -# 12. Cypress Eşzamansız Davranış(Asynchronous Behavior) +# 🧞 12. Cypress Eşzamansız Davranış(Asynchronous Behavior) Aşağıda Cypress'teki asenkron davranışa bir örnek verelim. diff --git a/13.-cypress-xhr-ile-calisma.md b/13.-cypress-xhr-ile-calisma.md index dc61d05..8f1420f 100644 --- a/13.-cypress-xhr-ile-calisma.md +++ b/13.-cypress-xhr-ile-calisma.md @@ -1,2 +1,18 @@ -# 13. Cypress XHR ile çalışma +--- +description: XHR is XML HTTP Request. +--- + +# 🦊 13. Cypress XHR ile çalışma + +XHR, XML HTTP İsteğidir. Bu bir Uygulama Programlama Arayüzüdür (API). yöntemleri bir web tarayıcısı ile sunucu arasında veri gönderen bir nesne olarak kullanılabilir. Bir nesnesi bir sunucudan yanıt biçiminde veri talep edebilir + +```javascript +//aliasing request +cy.request('https://jsonplaceholder.cypress.io/comments').as('c') + +cy.get('@c').should((response) => { + expect(response.body).to.have.length(100) + expect(response).to.have.property('headers') +}) +``` diff --git a/14.-cypress-checkbox.md b/14.-cypress-checkbox.md index d109e11..55c1b0f 100644 --- a/14.-cypress-checkbox.md +++ b/14.-cypress-checkbox.md @@ -1,2 +1,45 @@ -# 14. Cypress Checkbox +# ✅ 14. Cypress Checkbox +```javascript +// click all the checkboxes +cy.get('input[type="checkbox"]').check() + +// click a checkbox with id check +cy.get('#chk').check() + +// click a checkbox with value Cypress +cy.get('input[type="checkbox"]').check('Cypress') + +// click the checkboxes with values - Java and Python +cy.get('input[type="checkbox"]').check(['Java', 'Python']) + +// click the checkbox having value Java with options +cy.get('.chk').check('Java', options) + +// click the checkboxes with values – Java and Python with options +cy.get('input[type="checkbox"]').check(['Java', 'Python'], options) + +// click the checkbox having class check with an option +cy.get('.chk').check({force : true}) + +// uncheck all the checkboxes +cy.get('input[type="checkbox"]').uncheck() + +// uncheck a checkbox with id check +cy.get('#chk').uncheck() + +// uncheck the checkbox with value Cypress +cy.get('input[type="checkbox"]').uncheck('Cypress') + +// uncheck the checkboxes with values - Java and Python +cy.get('input[type="checkbox"]').uncheck(['Java', 'Python']) + +// uncheck the checkbox having value Java with options +cy.get('.chk').uncheck('Java', options) + +// uncheck the checkboxes with values – Java and Python with options +cy.get('input[type="checkbox"]').uncheck(['Java', 'Python'], options) + +// uncheck the checkbox having class check with an option +cy.get('.chk').uncheck({force : true) +``` diff --git a/15.-cypress-cookie-islemleri.md b/15.-cypress-cookie-islemleri.md index 10a495b..bd320e6 100644 --- a/15.-cypress-cookie-islemleri.md +++ b/15.-cypress-cookie-islemleri.md @@ -1,2 +1,2 @@ -# 15. Cypress Cookie İşlemleri +# 🍪 15. Cypress Cookie İşlemleri diff --git a/4.-cypress-ile-ilk-test.md b/4.-cypress-ile-ilk-test.md index 5bd192c..b5bc6b1 100644 --- a/4.-cypress-ile-ilk-test.md +++ b/4.-cypress-ile-ilk-test.md @@ -4,7 +4,7 @@ description: Bir test dosyası ekleyelim # 🔥 4. Cypress ile İlk Test -
+
**Cypress Dosya Yapısını inceleyelim** diff --git a/SUMMARY.md b/SUMMARY.md index 0cac433..209b922 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -11,10 +11,10 @@ * [👻 9. Cypress Locators](9.-cypress-locators.md) * [☝ 10. Cypress Assertions(iddia)](10.-cypress-assertions-iddia.md) * [📔 11. Cypress Metin Doğrulaması](11.-cypress-metin-dogrulamasi.md) -* [12. Cypress Eşzamansız Davranış(Asynchronous Behavior)](12.-cypress-eszamansiz-davranis-asynchronous-behavior.md) -* [13. Cypress XHR ile çalışma](13.-cypress-xhr-ile-calisma.md) -* [14. Cypress Checkbox](14.-cypress-checkbox.md) -* [15. Cypress Cookie İşlemleri](15.-cypress-cookie-islemleri.md) +* [🧞 12. Cypress Eşzamansız Davranış(Asynchronous Behavior)](12.-cypress-eszamansiz-davranis-asynchronous-behavior.md) +* [🦊 13. Cypress XHR ile çalışma](13.-cypress-xhr-ile-calisma.md) +* [✅ 14. Cypress Checkbox](14.-cypress-checkbox.md) +* [🍪 15. Cypress Cookie İşlemleri](15.-cypress-cookie-islemleri.md) * [16. Cypress Get ve Post İşlemleri](16.-cypress-get-ve-post-islemleri.md) * [17. Cypress Data Driven Testing](17.-cypress-data-driven-testing.md) * [18. Cypress — Dashboard Hackliyoruz](18.-cypress-dashboard-hackliyoruz.md)