0

cypress スクリプトの実行中に、「ブラウザが接続するのを待っているときにタイムアウトしました。再試行しています...」というエラーが表示されます。したがって、各スクリプトは Web ページにアクセスする必要があります。どうやら最初の 2 つのスクリプトは chrome ブラウザーに接続していますが、3 番目のスクリプト以降はエラーが発生しています。

失敗しているスクリプト

describe('Visual regression for elements in homepage', () => {
            beforeEach(() => {
            cy.viewport("macbook-15")
            })
            it('Take the screenshots of the entire Homepage of Thequint beta env', () => {       
            cy.visit('/elections')
            cy.get('sa[href="/"][data-reactid="7"]').click()
            cy.get("#container").matchImageSnapshot('Homepage',{coverage: "fullpage"})
            })
            it('Take the screenshots of the entire Homepage of Thequint beta env', () => {   
            cy.visit(Cypress.env("thequintbeta"))
            cy.get("#container").matchImageSnapshot('Homepage',{coverage: "fullpage2"})
            })
            })

したがって、ヒノキはブラウザにヘッドレスで接続できるはずですが、接続できません。エラーのスクリーンショット

4

0 に答える 0