Project

General

Profile

Actions

Bug #82972

closed

Failing acceptance tests activateAndDeactivateALanguage and downloadALanguage

Added by Stephan Großberndt over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Tests
Target version:
-
Start date:
2017-11-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
tests
Complexity:
Is Regression:
Sprint Focus:

Description

On some runs the acceptance tests activateAndDeactivateALanguage and downloadALanguage fail.

There is no obvious reason for the first failing test activateAndDeactivateALanguage.

The recorder result screenshots in

https://bamboo.typo3.com/artifact/CORE-GTC/ACMYPHP707102/build-16253/Test-Report/typo3temp/var/tests/AcceptanceReports/record_5a05f04d265cd_LanguageCest__Install_a_language/index.html

as well as the HTML source

https://bamboo.typo3.com/artifact/CORE-GTC/ACMYPHP707102/build-16253/Test-Report/typo3temp/var/tests/AcceptanceReports/TYPO3.CMS.Core.Tests.Acceptance.Backend.Language.LanguageCest.activateAndDeactivateALanguage.fail.html

do contain #language-pt_BR.enabled which is the line where the LanguageCest fails:

        $I->seeElement('#language-pt_BR');
        $I->seeElement('#language-pt_BR.disabled');
        $I->click('#language-pt_BR td a.activateLanguageLink');
        $I->seeElement('#language-pt_BR.enabled');

Enabling a language takes 250ms on a server of ours - maybe the first call in a fresh instance is slower (sometimes?) due to missing caches? Still this does not explain why the screenshot and the HTML contain the correct element but WebDriver fails to find it.

The second failing test downloadALanguage fails because of the first one - they use the same session - activateAndDeactivateALanguage does not deactive the language due to its failure.

downloadALanguage assumes there is currently no selected language in order to test the according error message before downloading anything.
As there is an activated language due to the failing activateAndDeactivateALanguage test that click already leads to the download of the language and the wanted error alert is not shown.

The dependency between the tests should probably be removed.

https://bamboo.typo3.com/artifact/CORE-GTC/ACMYPHP707102/build-16253/Test-Report/typo3temp/var/tests/AcceptanceReports/reports.html


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #82988: Stabilize Language Download Acceptance TestClosedMathias Schreiber2017-11-13

Actions
Actions #1

Updated by Stephan Großberndt over 6 years ago

  • Has duplicate Bug #82988: Stabilize Language Download Acceptance Test added
Actions #2

Updated by Gerrit Code Review over 6 years ago

  • Status changed from New to Under Review

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54631

Actions #3

Updated by Susanne Moog over 6 years ago

  • Tags set to tests
Actions #4

Updated by Gerrit Code Review over 6 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54631

Actions #5

Updated by Gerrit Code Review over 6 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54631

Actions #6

Updated by Gerrit Code Review over 6 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54631

Actions #7

Updated by Gerrit Code Review over 6 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54631

Actions #8

Updated by Gerrit Code Review over 6 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54631

Actions #9

Updated by Gerrit Code Review over 6 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54631

Actions #10

Updated by Gerrit Code Review over 6 years ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54631

Actions #11

Updated by Gerrit Code Review over 6 years ago

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54639

Actions #12

Updated by Anonymous over 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #13

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF