如何解决cypress中无法建立连接的网桥问题?

Ming
Ming
订阅者
273
文章
0
粉丝
测试交流评论185字数 226阅读0分45秒阅读模式
摘要我正试图自动化我的Weebly流程,但面临错误 网桥无法建立连接 然而,如果我只是去浏览器,运行流,使其工作,但在Weebly它不适用于。。。

我正试图自动化我的Weebly流程,但面临错误

网桥无法建立连接文章源自玩技e族-https://www.playezu.com/180672.html

然而,如果我只是去浏览器,运行流,使其工作,但在Weebly它不适合我。文章源自玩技e族-https://www.playezu.com/180672.html

import { And, Given, Then, When } from "cypress-cucumber-preprocessor/steps";
Cypress.on("uncaught:exception", (err, runnable) => {
  return false;

Given("Open the weebly website", () => {
  cy.visit(
    "http://www.weebly.com/editor/contributors.php?user=140661742&pc=240157955616149919"
  ).should("exist");
  cy.wait(2000);

When("Enter the email", () => {
  cy.get('[id="weebly-email"]')
    .should("exist")
    .type("weebly.invitation@gmail.com");

And("Click the next button", () => {
  cy.get('button[type="submit"]').click();

And("Enter the password", () => {
  cy.get('[id="weebly-password"]').should("exist").type("abcd1234");

And("Press the submit button", () => {
  cy.get('button[type="submit"]').should("be.visible").click();
  cy.wait(20000);

Then("User will land on weebly dashboard page", () => {
  cy.get('[class="site-header-name"]').should(
    "contains",
    "Welcome back, Muhammad!"
  );

屏幕截图1文章源自玩技e族-https://www.playezu.com/180672.html

屏幕截图2文章源自玩技e族-https://www.playezu.com/180672.html 文章源自玩技e族-https://www.playezu.com/180672.html

 
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定

拖动滑块以完成验证