<!-- 
RSS generated by JIRA (9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b) at Mon Feb 12 07:46:38 CET 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Magnolia - Issue tracker</title>
    <link>https://jira.magnolia-cms.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-uk</language>    <build-info>
        <version>9.4.2</version>
        <build-number>940002</build-number>
        <build-date>19-01-2023</build-date>
    </build-info>


<item>
            <title>[MGNLTEST-209] Skip css animations during test executions</title>
                <link>https://jira.magnolia-cms.com/browse/MGNLTEST-209</link>
                <project id="17084" key="MGNLTEST">Magnolia Test Framework</project>
                    <description>&lt;p&gt;When looking at vids of failed tests - we can see &quot;frozen&quot; animations - looks a bit like we see more than one &quot;frame&quot;, elements of contents-apps seem to miss, etc. Thus skipping the animations - if doable &quot;easy&quot; could help on the issue.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;Howwedo%2Fdititfinally%3F&quot;&gt;&lt;/a&gt;How we do/dit it finally?&lt;/h4&gt;

&lt;p&gt;Adding css via UI project with the vaadin theme using the media query:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;@media (prefers-reduced-motion: reduce)&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;And in test-fwk we call the chrome-driver with the flag &lt;tt&gt;force-prefers-reduced-motion.&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;Developernote%3A&quot;&gt;&lt;/a&gt;Developer note:&lt;/h3&gt;

&lt;p&gt;the command line flag &lt;br/&gt;
&lt;tt&gt;--wm-window-animations-disabled&lt;/tt&gt;&lt;br/&gt;
should do the trick. Most likely can be added as an arg in ChromeOptions at info.magnolia.test.selenium.Selenium#getNewChromeDriver&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Just a hunch (perhaps a bit hackish):&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Provide a &lt;tt&gt;@DisableCssAnimations&lt;/tt&gt; annotation you can apply at method level.&lt;/li&gt;
	&lt;li&gt;When the driver is created at &lt;tt&gt;info.magnolia.test.selenium.Selenium#resolveParameter&lt;/tt&gt;, use Selenium&apos;s ability to execute JS &lt;a href=&quot;https://www.browserstack.com/guide/javascriptexecutor-in-selenium&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.browserstack.com/guide/javascriptexecutor-in-selenium&lt;/a&gt; to inject a custom css, say &lt;tt&gt;.disable-css-animations&lt;/tt&gt; in DOM, something like &lt;a href=&quot;https://marcgg.com/blog/2015/01/05/css-animations-failing-capybara-specs/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://marcgg.com/blog/2015/01/05/css-animations-failing-capybara-specs/&lt;/a&gt;&lt;br/&gt;
(see also &lt;a href=&quot;https://stackoverflow.com/questions/51050533/injecting-css-like-html-through-javascript-into-the-dom&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://stackoverflow.com/questions/51050533/injecting-css-like-html-through-javascript-into-the-dom&lt;/a&gt;)&lt;/li&gt;
	&lt;li&gt;If annotation is present, add the custom style to the body of the page still using Selenium&apos;s JS executor, e.g. in &lt;tt&gt;beforeEach&lt;/tt&gt; method&lt;/li&gt;
	&lt;li&gt;finally remove custom style in &lt;tt&gt;afterEach&lt;/tt&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="109459">MGNLTEST-209</key>
            <summary>Skip css animations during test executions</summary>
                <type id="5" iconUrl="https://jira.magnolia-cms.com/secure/viewavatar?size=xsmall&amp;avatarId=10896&amp;avatarType=issuetype">Sub-task</type>
                            <parent id="109455">MGNLTEST-208</parent>
                                    <priority id="6" iconUrl="https://jira.magnolia-cms.com/images/icons/priorities/neutral.gif">Neutral</priority>
                        <status id="6" iconUrl="https://jira.magnolia-cms.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="10300">Resolved</resolution>
                                        <assignee username="cmeier">Christoph Meier</assignee>
                                    <reporter username="cmeier">Christoph Meier</reporter>
                        <labels>
                            <label>VN-Testing</label>
                            <label>foundation_team</label>
                    </labels>
                <created>Fri, 1 Apr 2022 12:15:30 +0200</created>
                <updated>Wed, 18 May 2022 18:11:33 +0200</updated>
                            <resolved>Thu, 5 May 2022 12:50:48 +0200</resolved>
                                                    <fixVersion>1.3.1</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                    <progress percentage="100">
                                    <originalProgress>
                                                    <row percentage="0" backgroundColor="#89afd7"/>
                                                    <row percentage="100" backgroundColor="transparent"/>
                                            </originalProgress>
                                                    <currentProgress>
                                                    <row percentage="100" backgroundColor="#51a825"/>
                                                    <row percentage="0" backgroundColor="#ec8e00"/>
                                            </currentProgress>
                            </progress>
                                    <aggregateprogress percentage="100">
                                    <originalProgress>
                                                    <row percentage="0" backgroundColor="#89afd7"/>
                                                    <row percentage="100" backgroundColor="transparent"/>
                                            </originalProgress>
                                                    <currentProgress>
                                                    <row percentage="100" backgroundColor="#51a825"/>
                                                    <row percentage="0" backgroundColor="#ec8e00"/>
                                            </currentProgress>
                            </aggregateprogress>
                                                    <timespent seconds="54000">1d 7h</timespent>
                                <comments>
                            <comment id="301777" author="cmeier" created="Wed, 6 Apr 2022 09:53:05 +0200"  >&lt;p&gt;&lt;tt&gt;--wm-window-animations-disabled&lt;/tt&gt; didn&apos;t do the trick.&lt;/p&gt;

&lt;p&gt;Next thing to try out, via CSS. See:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://bugs.chromium.org/p/chromium/issues/detail?id=8944&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://bugs.chromium.org/p/chromium/issues/detail?id=8944&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="302853" author="mmichel" created="Thu, 14 Apr 2022 10:52:25 +0200"  >&lt;p&gt;FTR &lt;a href=&quot;https://caniuse.com/?search=prefers-reduced-motion&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://caniuse.com/?search=prefers-reduced-motion&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="304042" author="cmeier" created="Tue, 26 Apr 2022 10:21:22 +0200"  >&lt;p&gt;A few thoughts&lt;/p&gt;

&lt;p&gt;About injecting the CSS via JavaScript / JavaScriptExecutor of Selenium&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;What happens after the login? Do we get a new page?&lt;/li&gt;
	&lt;li&gt;NEW PAGE:
	&lt;ul&gt;
		&lt;li&gt;We must inject it rather after the login&lt;/li&gt;
		&lt;li&gt;In this case - it is likely better to add the code as pure CSS in UI/AdminCentral&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;Not a new page
	&lt;ul&gt;
		&lt;li&gt;All good &#8230; injecting va script/script-executor should be fine&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;How to enable the skip-animation&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;IF added / injected via script/script-executor
	&lt;ul&gt;
		&lt;li&gt;Can be enabled always&lt;/li&gt;
		&lt;li&gt;Optionally adding the ability to control via Annotation
		&lt;ul&gt;
			&lt;li&gt;But what we gain from it?&lt;/li&gt;
		&lt;/ul&gt;
		&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;IF added by sole CSS / on ui/Admincentral level, with media query:&lt;br/&gt;
@media screen and (prefers-reduced-motion: reduce) { /* css-code here */ }&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Conclusion:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;b&gt;Adding the CSS with plain file on Admincentral is more reliable &amp;amp; safe.&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="305247" author="cmeier" created="Thu, 5 May 2022 12:50:50 +0200"  >&lt;p&gt;reviewed and integrated&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10020">
                    <name>dependency</name>
                                            <outwardlinks description="depends upon">
                                        <issuelink>
            <issuekey id="110907">MGNLUI-7136</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10111" key="com.atlassian.jira.toolkit:reporterdomain">
                        <customfieldname>Company</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>magnolia-cms.com</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10031" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 14 Apr 2022 10:52:25 +0200</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_12730" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_14151" key="com.atlassian.jira.toolkit:message">
                        <customfieldname>Docu info</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10061" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comm is not jira-dev</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10071" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last participant</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>fgrilli</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_13136" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 40 weeks, 3 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10020" key="com.atlassian.jira.toolkit:attachments">
                        <customfieldname>Number of attachments</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10150" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname>Number of comments</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>cmeier</customfieldvalue>
            <customfieldvalue>mmichel</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10833" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|y06d8i:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10244" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14145" key="com.intenso.jira.issue-templates:issue-templates-customfield">
                        <customfieldname>Template</customfieldname>
                        <customfieldvalues>
                            


                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_15131" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Time in Discovery</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_13933" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Urgency (resolution)</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="15724"><![CDATA[Normal]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>