Comments (5)
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.
I think we can close this as @kobenguyent fixed it with updating examples
from codeceptjs.
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.
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.
@kobenguyent why do we have TypeScript in our examples?
from codeceptjs.
Related Issues (20)
- run-multiple execution creates output sub folders with alphanumeric value instead of browser names HOT 9
- runOnAndroid/runOnIOS blocks are stuck after upgrading CodeCept from 3.4.1 to 3.5.15 and Appium From 1 to 2. HOT 1
- Not able to do file download validation with run-multiple execution HOT 1
- I.fillField and I.see is not working when we do the cross browser testing HOT 2
- While using run-multiple for parallel execution, method I.dontSeeElement gives error Cannot read properties of undefined (reading 'react') HOT 7
- in BDD or Gherkin mode, the `After` is not synchronous where next scenario starts (while the `After` is still executing) HOT 5
- It takes a long time to finish the process after testing
- Facing issues in fetch the element with data-testid HOT 6
- In codeceptJS version 3.6.0, an error occurred when using the pause() method HOT 2
- Scenario and step timeouts are not working as expected HOT 1
- Problem with launching test with an exact tag
- `I.waitForURL()` does not fail the test when its timeout happens
- Healer priorities and steps are not respected
- Webdriver and coverage
- "undefined undefined" error when bdd:init HOT 1
- [Asking for help] Process are blocking when throw error in scenario with Retry enabled HOT 25
- I.askGptOnPageFragment is not a function HOT 3
- @codeceptjs/ui dependency seems to be blocking update to codeceptjs 3.6.2 HOT 1
- npm install not working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeceptjs.