Commit 229316fb authored by Christian Keuerleber's avatar Christian Keuerleber
Browse files

TASK: add composer packages, test extension, first registration test

parent 326031b3
Pipeline #7764 failed with stages
in 17 seconds
......@@ -53,5 +53,13 @@
"root-dir": "private",
"cms-package-dir": "{$vendor-dir}/typo3/cms"
}
},
"require-dev": {
"punktde/codeception-cli": "^1.1.0",
"punktde/codeception-webdriver": "^1.1.0",
"punktde/codeception-filesystem": "^1.1.0",
"punktde/codeception-database": "^1.1.0",
"punktde/codeception-mailhog": "^1.1.0",
"codeception/codeception": "^3.1"
}
}
This diff is collapsed.
paths:
tests: ../Tests
output: ../Tests/_output
data: ../Tests/_data
support: ../Tests/_support
envs: ../Tests/_envs
actor_suffix: Tester
extensions:
enabled:
- Codeception\Extension\RunFailed
../Tests/acceptance/Features/Registration.feature:Registration workflow
\ No newline at end of file
<?php
use PunktDe\Codeception\Webdriver\ActorTraits\Webdriver;
/**
* Inherited Methods
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookForwardTo($achieveValue)
* @method void comment($description)
* @method void pause()
*
* @SuppressWarnings(PHPMD)
*/
class AcceptanceTester extends \Codeception\Actor
{
use _generated\AcceptanceTesterActions;
use Webdriver;
}
<?php
namespace Helper;
// here you can define custom actions
// all public methods declared in helper class will be available in $I
class Acceptance extends \Codeception\Module
{
}
<?php //[STAMP] 3db5017985ae4de15313e06529e9c503
namespace _generated;
// This class was automatically generated by build task
// You should not change it manually as it will be overwritten on next build
// @codingStandardsIgnoreFile
trait FunctionalTesterActions
{
/**
* @return \Codeception\Scenario
*/
abstract protected function getScenario();
}
# Codeception Test Suite Configuration
#
# Suite for acceptance tests.
# Perform tests in browser using the WebDriver or PhpBrowser.
# If you need both WebDriver and PHPBrowser tests - create a separate suite.
actor: AcceptanceTester
modules:
enabled:
- Webdriver:
browser: chrome
url: https://my.typo3.org.ddev.site
restart: true
window_size: 1920x2080
capabilities:
chromeOptions:
args:
# - '--headless'
# - '--disable-gpu'
- '--disable-dev-shm-usage'
- '--no-sandbox'
- \Helper\Acceptance
step_decorators: ~
Feature:
As a new person interacting with TYPO3
in order to use all the funtionality
I need to be able to register to my.typo3.org
Scenario: Registration workflow
Given I am on "/"
Then I should see "Welcome to my.typo3.org"
When I click on "Login"
Then I should see "Enter your credentials below to sign in"
#When I click on "Sign up"
When I am on "/?id=2"
And I fill in "Username" with "my_testuser"
And I fill in "Email" with "test@localdomain"
And I fill in "Full Name" with "Little Miss Sunshine"
And I fill in "Password" with "aaaaaaaaaaaa"
And I fill in "Repeat Password" with "aaaaaaaaaaaa"
And I check option "I accept the terms and conditions"
And I click on "Create Profile Now"
Then I should not see an ".femanager_error" element
And I should not see "Whoops"
<?php
/************************************************************************
* Extension Manager/Repository config file for ext "t3omy_test".
************************************************************************/
$EM_CONF[$_EXTKEY] = [
'title' => 'acceptance tests for my TYPO3',
'description' => 'Extension containing acceptance tests and configuration',
'category' => 'extension',
'constraints' => [
'depends' => [
],
'conflicts' => [],
],
'autoload' => [
'psr-4' => [
'T3o\\T3omy\\' => 'Classes'
],
],
'state' => 'stable',
'uploadfolder' => 0,
'createDirs' => '',
'clearCacheOnLoad' => 1,
'author' => 'Christian Keuerleber',
'author_email' => 'keuerleber@punkt.de',
'author_company' => 'typo3',
'version' => '1.0.0',
];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment