Cypress Tutorial #12 - How to Write First Assertion

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

ความคิดเห็น • 6

  • @MohsinAli-zq5mw
    @MohsinAli-zq5mw 10 หลายเดือนก่อน

    Great job. very clear explanation.

    • @softwaretestingmentor
      @softwaretestingmentor  10 หลายเดือนก่อน

      Thank you very much! Keep watching and sharing.

  • @softwaretestinglearninghub
    @softwaretestinglearninghub ปีที่แล้ว

    Thank you for this series! I just got a new Project where I need to build a new Cyoress automation framework

  • @anaisry
    @anaisry 7 หลายเดือนก่อน

    Hi, one question I have a URL xx/0/xy and in my test I have to check the duration of an element, in the URL from xx/0/xy to xx/1000/xy how can I automate this, without having to write them separately like this?
    it("0", () =>{
    cy.visit('/xx/0/xy')
    cy.checkelement()
    })
    it("1", () =>{
    cy.visit('/xx/1/xy')
    cy.checkelement()
    })
    it("2", () =>{
    cy.visit('/xx/2/xy')
    cy.checkelement()
    })
    .... Repeat cy.visit('/xx/1000/xy')
    which I would separate into two parts the first one an assertion to check the URL which has to be in increment 0,1...1000 and the second one every time the URL is modified automatically that the cy.checkelement() command is performed.
    I would really appreciate it if you could help me with this problem.
    Thanks a lot