We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
const { debug, pause } = require('codeceptjs/debug'); const { inject, share, actor } = require('codeceptjs/container'); const { locate, secret, tryTo, retryTo, hopeThat, step, session, within } = require('codeceptjs/fns'); const { eachElement: $, expectElement, expectElements } = require('codeceptjs/els'); const { Given, When, Then } = require('codeceptjs/bdd');
els
const { expectElement } = require('codeceptjs/els'); // perform assertion expectElement('.item', el => el.isVisible());
hopeTo
hopeThat(() => I.see('asdsa')); hopeThat(() => I.dontSee('asdsad'))
SoftExpectHelper
pause()
editWithCopilot()
Explicitly import helpers:
// codecept.conf.js import { Playwright } from 'codeceptjs/helpers' import ExpectHelper from '@codeceptjs/expect-helper' config = { helpers: { Playwright: { }, ExpectHelper: { // maybe config here } } }
Explicitly use all global functions in tests:
import { debug, pause } from 'codeceptjs/debug'; import { inject, share, actor } from 'codeceptjs/container'; import { locate, secret, tryTo, retryTo, hopeThat, step, session, within } from 'codeceptjs/fns'; import { eachElement as $, expectElement, expectElements } from 'codeceptjs/els'; import { Given, When, Then } from 'codeceptjs/bdd';