1,469 questions
0
votes
0
answers
48
views
Using JSON Schema's external references ($ref) with Codeception's seeResponseIsValidOnJsonSchema()
I'm trying to validate responses in Codeception using seeResponseIsValidOnJsonSchema() method which uses JSON Schema for PHP library. The problem is that it looks like JSON Schema "external" ...
0
votes
0
answers
22
views
How to reproduce a bug in the ce-mftfmagento-commands.json?
After passing the archive with my extension to the Magento marketplace on technical review I got a ce-mftfmagento-commands.json with following error.
my environment: php:8.2 / mageno:2.4.7
test name: ...
0
votes
1
answer
49
views
Codeception method seeResponseContainsJson returns an error when trying to match data containing Russian letters
My Test:
$I->wantTo("Create new claim");
$I->haveHttpHeader('accept', 'application/json');
$I->haveHttpHeader('content-type', 'application/json; charset=utf-8');
$I->...
0
votes
1
answer
126
views
Selenium doesn't pick the right MUI-X Datepicker (SSR related bug?)
I encountered a problem using codeception with selenium. I tried to write an acceptance test for some forms and with codeception using selenium. But i'm struggling with the MUI-X Datepickers.
The ...
0
votes
2
answers
36
views
Interactive Console while running unit test in Codeception
We have 2 scenarios:
Account Binding (registering a bank account number to a service)
Verify OTP (input the otp code sent via customer's mobile phone)
Some response from the Account Binding used in ...
0
votes
0
answers
59
views
Mailcatcher HTTP/1 is not supported
I am using Mailcatcher when doing testing with codeception in an Github Actions.
Installing it like this:
- name: Install & run mailcatcher
run: |
sudo gem install mailcatcher --no-...
0
votes
0
answers
149
views
Testing with PHP Infection
I cover my project with unit tests. I'm using infection and codeception v5. Also I install bypass-finals extension, cause project has a lot of final classes. I guess because of the presence of final ...
2
votes
1
answer
99
views
Codeception: Acceptance test is running as the first test in the test group, where API test is defined as the first test in the group: How to resolve?
I use Codeception framework and Netbeans IDE for my test automation using PHP.
I would like to run 2 tests one after another in a group, where the API test will run first and after the successful run ...
0
votes
1
answer
168
views
Codeception: Symfony fixtures are not being autowired
I have a pretty simple repository test case:
class AmaRepositoryCest
{
public function _before(FunctionalTester $I)
{
$I->loadFixtures(AmaFixture::class);
}
public function ...
0
votes
1
answer
160
views
get php version which codeception tests are running
I'm trying to upgrade my project's php version from php 7.4 to php 8.1,
Now I changed the php version in my composer.json to php 8.1 like that:
"require": {
"php": "^8.1&...
-1
votes
2
answers
94
views
The test does not see the data from the fixture
I have a fixture to fill in the test user
namespace Tests\Fixture;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Persistence\ObjectManager;
use App\Entity\User;
final class UserFixture ...
1
vote
1
answer
139
views
Use Symfony TestContainer in an environment not called "test"
I write a unit test in CodeCception, my config Unit.suite.yml
actor: UnitTester
modules:
enabled:
- Asserts
- Symfony:
environment: 'autotest'
step_decorators: ~
I have a ...
1
vote
1
answer
119
views
not able to setup api testing codeception for yii2
I am working on project built in yii2 and the front end is angular 12 and i am trying to integrate api testing in my project (locally), i am following the documentation but not able to integrate it ...
0
votes
0
answers
58
views
testing a link with codeception
I'm using codeception for the first time, and I'm trying to test a symfony route that has parameters. When I run the test, it doesn't get to the page and the test fails. I've never used codeception, ...
1
vote
0
answers
159
views
Is it possible to only run tests that touch changed code in php
I have a testsuite that takes several minutes to complete so it starts to get annoying to run them all before each push (they will still be run in the deployment pipeline as well)
So I was wondering ...