Review 11.5 Merged

83036[TASK] Allow execution of acceptance tests with local chromedriver

Benjamin Franzke CR +2 V +2 Normal +141 −63 updated 03/05/24, 11:50

Commit message

A local instance can sometimes be easier to debug and browser issues
can be introspected, when acceptance tests are possible to be run on
the host instead of in containers only.

Allow to run acceptance tests against a local server using a local
chromedriver. Also avoid the usage of precalculated session hashes,
which has no clear advantage, but requires codecept to perform
database connections directly: The tests now login via the backend
login form instead and store the session cookies between test runs.

As a side effect the codeception suites are cleaned up, to use
more efficient module config, instead of redundantly repeating
all WebDriver settings for headless and non-headless environment.

To execute codeception with local chromedriver against a custom
server URL run:

  chromedriver --silent & # use `killall chromedriver` when done

  typo3TestingAcceptanceBaseUrl=https://mycore.example.com/ \
  typo3TestingAcceptanceAdminPassword="MyAdminPa$$w0rd" \
  typo3TestingAcceptanceEditorPassword="MyEditorPa$$w0rd" \
  bin/codecept -d -c typo3/sysext/core/Tests/codeception.yml \
    run Application

Review

  • Code review CR +2 Done
    • Benjamin Franzke +2
  • Verified V +2 Done
    • Benjamin Franzke +2
    • core-ci +1 CI

Issues 1

Files 8

Review log 69

  1. Benjamin Franzke uploaded patch set 1 02/19/24, 14:23

  2. Benjamin Franzke marked it work in progress 02/19/24, 14:24

  3. core-ci voted on patch set 1 V -1 02/19/24, 14:36 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/53341

  4. Benjamin Franzke uploaded patch set 2 V -1 02/20/24, 10:12

  5. core-ci voted on patch set 2 V +1 02/20/24, 10:20 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/53363

  6. Benjamin Franzke marked it ready for review 02/20/24, 10:36

  7. core-ci commented on patch set 2 02/20/24, 12:56 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/53370

  8. Benjamin Franzke voted on patch set 2 CR +2 V +2 03/05/24, 11:50

  9. Benjamin Franzke merged patch set 3 03/05/24, 11:50