Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
[TASK] Automate Galery Screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
linawolf committed Jul 9, 2021
1 parent 57d24d7 commit 9db4525
Show file tree
Hide file tree
Showing 10 changed files with 71 additions and 8 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. Automatic screenshot: Remove this line if you want to manually change this file
.. figure:: /Images/AutomaticScreenshots/RootlevelFlag.png
:alt: The rootlevel flag in a template record.
:class: with-shadow

The rootlevel flag in a template record.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. Automatic screenshot: Remove this line if you want to manually change this file
.. figure:: /Images/AutomaticScreenshots/TemplateAnalyzerStructure.png
:alt: The template structure as seen with the Template Analyzer
:class: with-shadow

The template structure as seen with the Template Analyzer
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 1 addition & 3 deletions Documentation/TypoScriptOverview/MainTemplate/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ The TypoScript code used to define how pages are rendered is
located in the "main" template. In this template a so-called
"rootlevel flag" is set.

.. figure:: /Images/ManualScreenshots/RootlevelFlag.png
:alt: The rootlevel flag in a template record.

.. include:: /Images/AutomaticScreenshots/RootlevelFlag.rst.txt

When the frontend renders a page, TYPO3 CMS searches along the page tree up
to the root page to find a "main" template. Normally, there are
Expand Down
6 changes: 1 addition & 5 deletions Documentation/UsingFluidStyledContent/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ You should see a list of all used TypoScript templates and how they possibly
include one another. All templates are evaluated by TYPO3 CMS from top to
bottom.

.. figure:: /Images/ManualScreenshots/TemplateAnalyzerStructure.png
:alt: The template structure as seen with the Template Analyzer

The template structure as seen with the Template Analyzer

.. include:: /Images/AutomaticScreenshots/TemplateAnalyzerStructure.rst.txt

With a click on "EXT:fluid\_styled\_content/static/", you can view the content
of that template (below the hierarchical view), first the constants, then the
Expand Down
55 changes: 55 additions & 0 deletions screenshots.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"suites": {
"Introduction": {
"screenshots": {
"_default": [
{"action": "resizeWindow", "width": 1024,"height": 768},
{"action": "setScreenshotsDocumentationPath", "path": "Documentation"},
{"action": "setScreenshotsImagePath","path": "Images/AutomaticScreenshots"},
{"action": "setScreenshotsRstPath","path": "Images/AutomaticScreenshots"},
{"action": "setCodeSnippetsSourcePath","path": "typo3conf/ext/styleguide"},
{"action": "setCodeSnippetsTargetPath", "path": "CodeSnippets"}
],
"templatesModule": [
{"include": "_default"},
{"action": "see", "text": "Template"},
{"action": "click", "link": "Template"},
{"action": "drawBox", "selector": "#web_ts"},
{"action": "openPageTreePath", "path": ["Congratulations"]},
{"action": "switchToContentFrame"},
{"action": "wait", "timeout": "1"},
{"action": "selectOption", "select": "select.t3-js-jumpMenuBox", "option": "Template Analyzer"},
{"action": "see", "text": "Template hierarchy"},
{"action": "drawBox", "selector": "select.t3-js-jumpMenuBox"},
{
"action": "makeScreenshotOfElement",
"altText": "The template structure as seen with the Template Analyzer",
"captionText": "The template structure as seen with the Template Analyzer",
"fileName": "TemplateAnalyzerStructure"
}
],
"templatesRecords": [
{"include": "_default"},
{"action": "resizeWindow", "width": 640,"height": 768},
{
"action": "goToRecord",
"table": "sys_template",
"uid": 2
},
{"action": "click", "link": "Options"},
{
"action": "drawBox",
"selector": "//fieldset[contains(., \"Rootlevel\")]"
},
{
"action": "makeScreenshotOfElement",
"fileName": "RootlevelFlag",
"selector": ".t3js-module-body",
"captionText": "The rootlevel flag in a template record.",
"altText": "The rootlevel flag in a template record."
}
]
}
}
}
}

0 comments on commit 9db4525

Please sign in to comment.