From 0ffecf6ab224546ccd8338d160baf062a12203c2 Mon Sep 17 00:00:00 2001
From: Anja Leichsenring <aleichsenring@ab-softlab.de>
Date: Tue, 6 Oct 2020 22:01:14 +0200
Subject: [PATCH] [BUGFIX] Adjust acceptance test for composer max stages

The test fails in recent runs due to a type error. It expects an integer,
but gets served a string and therefore fails.
Adjusting the expected value to be a string solves the test failure.

Resolves: #92496
Releases: master, 10.4
Change-Id: I6289502e7f44c3ec826138b32bdfa8e775565fb1
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66063
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
---
 .../Acceptance/Backend/FormEngine/FalMetadataCest.php     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/typo3/sysext/core/Tests/Acceptance/Backend/FormEngine/FalMetadataCest.php b/typo3/sysext/core/Tests/Acceptance/Backend/FormEngine/FalMetadataCest.php
index be62846b116b..757e510ef0ac 100644
--- a/typo3/sysext/core/Tests/Acceptance/Backend/FormEngine/FalMetadataCest.php
+++ b/typo3/sysext/core/Tests/Acceptance/Backend/FormEngine/FalMetadataCest.php
@@ -180,10 +180,10 @@ class FalMetadataCest
         $I->dontSeeCheckboxIsChecked('//input[contains(@name, "[alternative]") and @type="checkbox" and contains(@name, "control[active][sys_file_reference]")]');
         $I->dontSeeCheckboxIsChecked('//input[contains(@name, "[description]") and @type="checkbox" and contains(@name, "control[active][sys_file_reference]")]');
 
-        $I->amGoingTo('Assert hidden control field value (default value which is used when checkbox is not checked');
-        $I->seeInField('//input[contains(@name, "[title]") and @type="hidden" and contains(@name, "control[active][sys_file_reference]")]', 0);
-        $I->seeInField('//input[contains(@name, "[alternative]") and @type="hidden" and contains(@name, "control[active][sys_file_reference]")]', 0);
-        $I->seeInField('//input[contains(@name, "[description]") and @type="hidden" and contains(@name, "control[active][sys_file_reference]")]', 0);
+        $I->amGoingTo('Assert hidden control field value (default value which is used when checkbox is not checked)');
+        $I->seeInField('//input[contains(@name, "[title]") and @type="hidden" and contains(@name, "control[active][sys_file_reference]")]', '0');
+        $I->seeInField('//input[contains(@name, "[alternative]") and @type="hidden" and contains(@name, "control[active][sys_file_reference]")]', '0');
+        $I->seeInField('//input[contains(@name, "[description]") and @type="hidden" and contains(@name, "control[active][sys_file_reference]")]', '0');
 
         //when checkbox is unchecked the disabled input is shown
         //<input type="text" class="form-control" disabled="disabled" value="Test title">
-- 
GitLab