-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hotfix/screen max height #387
Changes from all commits
0520ec7
f916829
30cb4ce
677244d
f07c4a0
9e9e2b9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<%-- | ||
|
||
AET | ||
|
||
Copyright (C) 2013 Cognifide Limited | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
|
||
--%> | ||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | ||
<%@ include file="/includes/header.jsp" %> | ||
<c:forEach begin="1" end="30" varStatus="loop"> | ||
<div class="sponsor" style="height: 1000px"> | ||
<img src="/sample-site/assets/demo_files/logo.png" alt="Bootswatch" /> | ||
</div> | ||
</c:forEach> | ||
<%@ include file="dynamic_content.jsp" %> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -474,5 +474,42 @@ | |
<url href="comparators/layout/failed.jsp"/> | ||
</urls> | ||
</test> | ||
|
||
<test name="F-comparator-Layout-dynamic-element-at-bottom-of-long-page"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you please explain what is the idea for this failing test? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's about checking if AET are capable of taking partial screenshot of element located at the bottom (.dynamic2) of a very long page. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @tkaik You are right about what the test does. Concerning your suggestion about additional test: I don't think it is necessary as, as far I noticed, AET is always doing a full page screenshot, regardless whether partial is present or not? Take a look:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Jakub-Izbicki You're right, I never noticed that :) However the full screenshot is taken but it's immediately changed to a partial-image - the full screenshot is not saved in the database or displayed on the report - I think it's good idea to test such case as well. What do you think? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good idea, fixed! |
||
<collect> | ||
<open/> | ||
<resolution width="767"/> | ||
<!--ToDo: Remove resolution-sleep-resolution workaround after issue #357 is fixed. | ||
(https://github.com/Cognifide/aet/issues/357)--> | ||
<sleep duration="2000"/> | ||
<resolution width="767"/> | ||
<screen/> | ||
</collect> | ||
<compare> | ||
<screen comparator="layout"/> | ||
</compare> | ||
<urls> | ||
<url href="comparators/layout/long_page.jsp"/> | ||
</urls> | ||
</test> | ||
|
||
<test name="S-comparator-Layout-long-page-without-dynamic-at-bottom"> | ||
<collect> | ||
<open/> | ||
<resolution width="767"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you please leave here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
<!--ToDo: Remove resolution-sleep-resolution workaround after issue #357 is fixed. | ||
(https://github.com/Cognifide/aet/issues/357)--> | ||
<sleep duration="2000"/> | ||
<resolution width="767"/> | ||
<screen exclude-elements=".dynamic1,.dynamic2"/> | ||
</collect> | ||
<compare> | ||
<screen comparator="layout"/> | ||
</compare> | ||
<urls> | ||
<url href="comparators/layout/long_page.jsp"/> | ||
</urls> | ||
</test> | ||
|
||
<!-- Layout-Comparator END --> | ||
</suite> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update Resolution Modifier wiki.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done