https://cypress.io logo
Join Discord
Powered by
# general-chat
  • r

    rapid-laptop-3825

    09/13/2021, 2:58 PM
    Copy code
    import { validUserName, validPassword } from "../../fixtures/users.json";
    import LoginPage from "../page_objects/login";
    let login = new LoginPage();
    
    describe("Testing Login Flow happy path", () => {
      it("Navigates to Login Page", () => {
        login.navigateToLogin();
      });
    
      it("Identifies username field and types valid user", () => {
        login.getUserName().type(validUserName);
      });
    
      it("Identifies password field and types valid password", () => {
        login.getPassword().type(validPassword);
      });
    
      it("Identifies Sign In button and clicks on it", () => {
        login.getSignInButton().click();
      });
    
      it("Identifies Sign In success alert and Welcome message", () => {
        login.getLoggedInAlert();
        login.getWelcomeMessage();
      });
    });
  • r

    rapid-laptop-3825

    09/13/2021, 2:59 PM
    i'd like to export all that into a single function that I can call on other tests
  • i

    important-river-75795

    09/13/2021, 3:36 PM
    Add it to cypress commands
  • r

    rapid-laptop-3825

    09/13/2021, 5:43 PM
    thanks
  • f

    fancy-printer-64240

    09/14/2021, 1:38 PM
    How often do the
    cypress/browsers
    images get published on DockerHub? I see that the last one is
    node14.17.0-chrome91-ff89
    , when the last Chrome release is 93 and the last Firefox release is 91
  • s

    sticky-terabyte-19707

    09/16/2021, 11:47 AM
    hey everyone... I have a problem with cypress 8.4.0 crashing after connecting dashboard account to the app
  • s

    sticky-terabyte-19707

    09/16/2021, 11:47 AM
    Copy code
    TypeError: openProject.getRuns(...).then is not a function
  • s

    sticky-terabyte-19707

    09/16/2021, 11:47 AM
    this crashes when I try to open Runs tab
  • s

    sticky-terabyte-19707

    09/16/2021, 11:47 AM
    any ideas how to fix this?
  • s

    sticky-terabyte-19707

    09/16/2021, 11:48 AM
    similar thing happens when I go into Settings and try to expande Record Key
  • s

    sticky-terabyte-19707

    09/16/2021, 11:49 AM
    Copy code
    TypeError: openProject.getRecordKeys(...).then is not a function
  • i

    important-river-75795

    09/16/2021, 12:12 PM
    Looks like a js error not cypress
  • s

    sticky-terabyte-19707

    09/16/2021, 1:15 PM
    what do you mean
    js error not cypress
    ,,, cypress app was working correctly, until I followed
    Connect to dashboard
    link from Runs tab... and now app constantly crashes when visiting Runs tab.
  • c

    cuddly-winter-72122

    09/20/2021, 4:01 PM
    @User this is a known issue in 8.4.0, try upgrading to 8.4.1
  • s

    sticky-terabyte-19707

    09/20/2021, 4:51 PM
    Aha will try that, thanks @cuddly-winter-72122
  • s

    sticky-terabyte-19707

    09/20/2021, 5:14 PM
    And.. It works!
  • s

    sticky-terabyte-19707

    09/21/2021, 2:58 PM
    how could I add Testing lib chrome extension into chrome run by cypresS?
  • b

    bulky-sundown-74498

    09/21/2021, 2:58 PM
    What do you mean ?
  • s

    sticky-terabyte-19707

    09/21/2021, 2:58 PM
    testing library chrome extension
  • s

    sticky-terabyte-19707

    09/21/2021, 2:59 PM
    I use it regularly
  • s

    sticky-terabyte-19707

    09/21/2021, 2:59 PM
    but would like to get it in chrome run by cypress
  • b

    bulky-sundown-74498

    09/21/2021, 2:59 PM
    You can launch cypress with custom extensions using this API https://docs.cypress.io/api/plugins/browser-launch-api#Syntax
  • b

    bulky-sundown-74498

    09/21/2021, 2:59 PM
    But it is not real simple
  • b

    bulky-sundown-74498

    09/21/2021, 3:00 PM
    https://docs.cypress.io/api/plugins/browser-launch-api#Modify-browser-launch-arguments-preferences-and-extensions
  • b

    bulky-sundown-74498

    09/21/2021, 3:00 PM
    You have to download the extension in your repo and unzip it then point the browser at it
  • b

    bulky-sundown-74498

    09/21/2021, 3:01 PM
    @User I think this would be worth a quick video tutorial
  • s

    sticky-terabyte-19707

    09/21/2021, 3:01 PM
    thanks @User , I also found this article: https://www.cypress.io/blog/2020/01/07/how-to-load-the-react-devtools-extension-in-cypress/ which I guess is similar to what I want
  • s

    sticky-terabyte-19707

    09/21/2021, 3:02 PM
    the only problem I saw here is that I haven't realized I need to get the extension in the repo
  • s

    sticky-terabyte-19707

    09/21/2021, 3:02 PM
    I guess with that knowledge I could make this work
  • b

    bulky-sundown-74498

    09/21/2021, 3:33 PM
    🎉
1...161718...127Latest