Giter Club home page Giter Club logo

Comments (5)

kobenguyent avatar kobenguyent commented on June 18, 2024 1

issue has been addressed! We introduced another examples in TS -> https://github.com/codeceptjs/examples-ts

> [email protected] codeceptjs:demo
> codeceptjs run --steps -c node_modules/@codeceptjs/examples

creating output directory: /Users/t/Desktop/projects/node_modules/@codeceptjs/examples/output
CodeceptJS v3.5.15 #StandWithUkraine
Using test root "/Users/t/Desktop/projects/node_modules/@codeceptjs/examples"

Create Todos with BDD --
  Create a single todo item @bdd
   Given I have an empty todo list ""
   When I create a todo 123456 ""
   Then I see the new todo on my list ""
  ✔ OK in 3008ms

@first Create Todos @step:06 @smoke @story:12345 --
  Create a new todo item
    On TodosPage: goto 
      I am on page "https://todomvc.com/examples/react/dist/"
      I refresh page 
      I execute script () => sessionStorage.clear()
      I execute script () => console.error('Boom!')
      I wait for visible ".new-todo"
    I say "Given I have an empty todo list"
   Given I have an empty todo list
    I say "When I create a todo "foo""
   When I create a todo "foo"
    On TodosPage: enter todo "foo"
      I fill field ".new-todo", "foo"
      I press key "Enter"
      I wait 2
    I say "Then I see the new todo on my list"
   Then I see the new todo on my list
    On TodosPage: see number of todos 1
      I see number of visible elements ".todo-list li", 1
    I save screenshot "create-todo-item.png"
  ✔ OK in 2409ms

from codeceptjs.

DavertMik avatar DavertMik commented on June 18, 2024 1

I think we can close this as @kobenguyent fixed it with updating examples

from codeceptjs.

bionicles avatar bionicles commented on June 18, 2024

would using yarn be less likely to face these issues?

Error: npm install --save-dev --loglevel error typescript ts-node @types/node failed

Please install next packages manually:
npm i typescript ts-node @types/node --save-dev
> npm i typescript ts-node @types/node --save dev
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @codeceptjs/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/codeceptjs
npm ERR!   peer codeceptjs@">= 2.3.3" from @codeceptjs/[email protected]
npm ERR!   node_modules/@codeceptjs/configure
npm ERR!     @codeceptjs/configure@"1.0.1" from [email protected]
npm ERR!     dev @codeceptjs/configure@"^1.0.1" from the root project
npm ERR!   dev codeceptjs@"^3.5.15" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer codeceptjs@"3.5.14" from @codeceptjs/[email protected]
npm ERR! node_modules/@codeceptjs/ui
npm ERR!   dev @codeceptjs/ui@"^1.1.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/codeceptjs
npm ERR!   peer codeceptjs@"3.5.14" from @codeceptjs/[email protected]
npm ERR!   node_modules/@codeceptjs/ui
npm ERR!     dev @codeceptjs/ui@"^1.1.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /home/bion/.npm/_logs/2024-03-26T10_39_25_227Z-eresolve-report.txt

from codeceptjs.

bionicles avatar bionicles commented on June 18, 2024

i force installed the stuff, still doesn't work
force upgraded / audit fixed, same issue.
i checked an old project and it does work, probably some new versions introduced breaking changes ? i just want codeceptjs to work

Error: Could not include object TodosPage from module '/home/bion/hax/REDACTED/www/e2e/node_modules/@codeceptjs/examples/todomvc-tests/pages/todos.page.ts'
Unexpected token ':'
/home/bion/hax/REDACTED/www/e2e/node_modules/@codeceptjs/examples/todomvc-tests/pages/todos.page.ts:85
        let todos: any = await I.grabTextFrom('.todo-list li')
                 ^

different project, working demo just loads nothing for todomvc and fails all the tests, cool.

> npm run codeceptjs:demo:ui

> [email protected] codeceptjs:demo:ui
> codecept-ui --app  -c node_modules/@codeceptjs/examples


 ⚠️You have to build Vue application by `npm run build`

sorry, maybe i'm spoiled by cargo but why is basic stuff in nodejs such a nightmare ? do i need to cd into node_modules/@codeceptjs/examples and build todomvc ?

all i want to do is verify this works. i can't believe we have a quickstart guide which leads directly into errors on the 2nd step! i really love codeceptjs or i wouldn't bother making this issue

from codeceptjs.

DavertMik avatar DavertMik commented on June 18, 2024

@kobenguyent why do we have TypeScript in our examples?

from codeceptjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.