Skip to content

Commit

Permalink
GITBOOK-14: No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
fport authored and gitbook-bot committed Feb 21, 2023
1 parent 99c14d4 commit 93124d4
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 9 deletions.
2 changes: 1 addition & 1 deletion 12.-cypress-eszamansiz-davranis-asynchronous-behavior.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
18 changes: 17 additions & 1 deletion 13.-cypress-xhr-ile-calisma.md
Original file line number Diff line number Diff line change
@@ -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')
})
```

45 changes: 44 additions & 1 deletion 14.-cypress-checkbox.md
Original file line number Diff line number Diff line change
@@ -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)
```
2 changes: 1 addition & 1 deletion 15.-cypress-cookie-islemleri.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# 15. Cypress Cookie İşlemleri
# 🍪 15. Cypress Cookie İşlemleri

2 changes: 1 addition & 1 deletion 4.-cypress-ile-ilk-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Bir test dosyası ekleyelim

# 🔥 4. Cypress ile İlk Test

<figure><img src=".gitbook/assets/Screenshot 2023-02-20 at 23.38.37.png" alt=""><figcaption></figcaption></figure>
<figure><img src=".gitbook/assets/Screenshot 2023-02-20 at 23.38.37 (1).png" alt=""><figcaption></figcaption></figure>

**Cypress Dosya Yapısını inceleyelim**

Expand Down
8 changes: 4 additions & 4 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 93124d4

Please sign in to comment.