CodeceptJS
CodeceptJS copied to clipboard
Problem with grabNumberOfVisibleElements function - OK status it's given before test completion
What are you trying to achieve?
I'm trying to check the total number of a determinate element present in an app with the function grabNumberOfVisibleElements.
What do you get instead?
When the above function it's called, somehow, a status OK (Passed) it's given, but the test by itself isn't completed yet. When some scenario fails the overall status indicates success.
Provide console output if related. Use
--verbosemode for more details.![]()
![]()
# paste output here
Provide test source code if related
// paste test
Details
- CodeceptJS version: 3.0.7
- NodeJS Version: 14.15.4
- Operating System: macOS Big Sur
- puppeteer || webdriverio || testcafe version (if related)
- Configuration file:
# paste config here
require('dotenv').config()
const check_real_device = require("./helper/check_real_device_helper");
exports.config = {
name: 'codecept',
tests: './spec/*/*_test.js',
output: './screenshots/output/',
helpers: {
ResembleHelper: {
require: "codeceptjs-resemblehelper",
screenshotFolder: "./screenshots/",
baseFolder: "./screenshots/base/",
diffFolder: "./screenshots/diff/"
},
Appium: {
app: process.env.APP,
host: process.env.DEVICE_FARM_HOST,
port: Number(process.env.DEVICE_FARM_PORT),
platform: process.env.PLATFORM,
user: String(process.env.DEVICE_FARM_USER),
key: String(process.env.DEVICE_FARM_KEY),
desiredCapabilities: {
deviceName: process.env.DEVICE_NAME,
platformVersion: process.env.PLATFORM_VERSION,
realDevice: check_real_device.realDevice(),
autoAcceptAlerts: true,
},
},
TestingBotHelper: {
require: "codeceptjs-tbhelper",
user: String(process.env.DEVICE_FARM_USER),
key: String(process.env.DEVICE_FARM_KEY),
},
WaitSomeTime: {
require: './helper/wait_some_time_helper.js',
},
RedisConnection: {
require: './helper/redis_connection_helper.js',
},
},
include: {
I: './steps_file.js',
},
bootstrap: null,
mocha: {},
plugins: {
pauseOnFail: {},
retryFailedStep: {
enabled: true
},
tryTo: {
enabled: true
},
screenshotOnFail: {
enabled: true
}
},
}
