Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
17 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" ...
Michał Żurakowski's user avatar
0 votes
0 answers
27 views

Codeception acceptance tests with i18n

I have configured i18n in my project. Now i want to test start page with acceptance test. Here is code of my test. <?php namespace Tests\Acceptance; use Tests\Support\AcceptanceTester; use Yii; ...
Kostya Bronshteyn's user avatar
0 votes
0 answers
14 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: ...
valentyn's user avatar
0 votes
1 answer
36 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->...
Dmitriy's user avatar
0 votes
0 answers
25 views

What is the idiomatic way of sharing state between steps of a scenario in Codeception?

I am using Codeception PHP with Gherkin language (.feature file extension). I tried to find an idiomatic way of sharing state between steps in a scenario. In my case the step implementation are NOT ...
mscho's user avatar
  • 982
0 votes
1 answer
55 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 ...
schmauso's user avatar
0 votes
2 answers
28 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 ...
Prabowo Murti's user avatar
0 votes
0 answers
43 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-...
maidan's user avatar
  • 229
0 votes
0 answers
106 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 ...
boulette de pate's user avatar
0 votes
0 answers
17 views

Codeception: Rightclicking on webelement and then selecting the first option is not working

I am using codeception as the IDE to write my automation tests using php. Problem statement: I want to right click on a web element > From the list of menu items visible post the right click, I ...
Summa11's user avatar
  • 21
2 votes
1 answer
94 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 ...
Summa11's user avatar
  • 21
0 votes
1 answer
124 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 ...
Majesty's user avatar
  • 2,079
1 vote
1 answer
136 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&...
Umar Sheikh Salem's user avatar
-1 votes
2 answers
86 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 ...
Angus123's user avatar
  • 113
1 vote
1 answer
106 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 ...
Angus123's user avatar
  • 113

15 30 50 per page
1
2 3 4 5
99