Commit 2fb0edc2 authored by Christian Keuerleber's avatar Christian Keuerleber
Browse files

TASK: install t3o/test-helpers and implement test to show how to use

parent d01cc0b6
Pipeline #7865 failed with stage
<?php
use PunktDe\Codeception\Webdriver\ActorTraits\Webdriver;
use T3o\TestHelpers\ActorTraits\Login;
/**
......@@ -23,4 +24,5 @@ class MonitoringTester extends \Codeception\Actor
use _generated\MonitoringTesterActions;
use Webdriver;
use Login;
}
......@@ -9,6 +9,7 @@ modules:
enabled:
- \Helper\Monitoring
- Filesystem
- \T3o\TestHelpers\Modules\Login
- WebDriver:
browser: chrome
url: https://my.typo3.org
......
......@@ -36,3 +36,7 @@ Feature: As a website user
And I wait for the "#login-user" element to be visible
And I wait for the text "Enter your credentials below to sign in"
Then I should see "Enter your credentials below to sign in"
Scenario: Default Login and Logout
Given I am logged in as "monitoringUser"
And I log myself out
{
"name": "t3o/my_monitoring",
"require-dev": {
"punktde/codeception-webdriver": "^1.1.0",
"punktde/codeception-mailhog": "^1.1.0",
"punktde/codeception-filesystem": "^1.1.0",
"punktde/codeception-database": "^1.1.0",
"punktde/codeception-cli": "^1.1.0",
"codeception/codeception": "^3.1"
},
"authors": [
{
"name": "Christian Keuerleber",
"email": "keuerleber@punkt.de"
}
],
"require": {}
"name": "t3o/my_monitoring",
"require-dev": {
"punktde/codeception-webdriver": "^1.1.0",
"punktde/codeception-mailhog": "^1.1.0",
"punktde/codeception-filesystem": "^1.1.0",
"punktde/codeception-database": "^1.1.0",
"punktde/codeception-cli": "^1.1.0",
"codeception/codeception": "^3.1",
"t3o/test-helpers": "dev-master"
},
"authors": [
{
"name": "Christian Keuerleber",
"email": "keuerleber@punkt.de"
}
],
"repositories": [
{
"type": "vcs",
"url": "https://git-t3o.typo3.org/t3o/test-helpers.git"
}
],
"require": {}
}
......@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "73cffc88d6c1fa5af2079240e9668261",
"content-hash": "ed4d1c349d71b8260bce9e395890bf79",
"packages": [],
"packages-dev": [
{
......@@ -3461,6 +3461,29 @@
"homepage": "https://symfony.com",
"time": "2019-10-30T12:58:49+00:00"
},
{
"name": "t3o/test-helpers",
"version": "dev-master",
"source": {
"type": "git",
"url": "https://git-t3o.typo3.org/t3o/test-helpers.git",
"reference": "32b5f984a5c0675e011dce38e1e6e5edd3805f20"
},
"require-dev": {
"codeception/codeception": "*"
},
"type": "library",
"autoload": {
"psr-4": {
"T3o\\TestHelpers\\": "Classes/"
}
},
"license": [
"GPL-3.0-or-later"
],
"description": "This package provides gherkin steps and module definitions to use for t3o testing",
"time": "2019-11-05T17:45:40+00:00"
},
{
"name": "theseer/tokenizer",
"version": "1.1.3",
......@@ -3554,7 +3577,9 @@
],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"stability-flags": {
"t3o/test-helpers": 20
},
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
......
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