Skip to content

Commit

Permalink
Hide the share pill in visual tests, and re-enable tests that were fl…
Browse files Browse the repository at this point in the history
…aky because of this (ampproject#20022)
  • Loading branch information
newmuis authored and Noran Azmy committed Mar 22, 2019
1 parent 5bf522b commit 37f8cf2
Show file tree
Hide file tree
Showing 21 changed files with 199 additions and 33 deletions.
10 changes: 10 additions & 0 deletions examples/visual-tests/amp-story/amp-story-bookend.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@
display: none;
}

/*
* The share pill text does not show in the same place consistently, and
* as such causes the visual tests to be flaky. This hides the share pill
* with visibility: hidden, so as to keep other elements in the same place
* that they would otherwise be, while deflaking the tests. See #19890.
*/
.i-amphtml-story-share-pill {
visibility: hidden;
}

h1.hello-world {
color: white;
text-align: center;
Expand Down
10 changes: 10 additions & 0 deletions examples/visual-tests/amp-story/amp-story-bookend.rtl.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@
display: none;
}

/*
* The share pill text does not show in the same place consistently, and
* as such causes the visual tests to be flaky. This hides the share pill
* with visibility: hidden, so as to keep other elements in the same place
* that they would otherwise be, while deflaking the tests. See #19890.
*/
.i-amphtml-story-share-pill {
visibility: hidden;
}

h1.hello-world {
color: white;
text-align: center;
Expand Down
10 changes: 10 additions & 0 deletions examples/visual-tests/amp-story/amp-story-consent.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
display: none;
}

/*
* The share pill text does not show in the same place consistently, and
* as such causes the visual tests to be flaky. This hides the share pill
* with visibility: hidden, so as to keep other elements in the same place
* that they would otherwise be, while deflaking the tests. See #19890.
*/
.i-amphtml-story-share-pill {
visibility: hidden;
}

h1#hello-world {
color: white;
text-align: center;
Expand Down
10 changes: 10 additions & 0 deletions examples/visual-tests/amp-story/amp-story-consent.rtl.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
display: none;
}

/*
* The share pill text does not show in the same place consistently, and
* as such causes the visual tests to be flaky. This hides the share pill
* with visibility: hidden, so as to keep other elements in the same place
* that they would otherwise be, while deflaking the tests. See #19890.
*/
.i-amphtml-story-share-pill {
visibility: hidden;
}

h1#hello-world {
color: white;
text-align: center;
Expand Down
10 changes: 10 additions & 0 deletions examples/visual-tests/amp-story/amp-story-cta-layer.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@
left: 50%;
transform: translate(-50%, -50%);
}

/*
* The share pill text does not show in the same place consistently, and
* as such causes the visual tests to be flaky. This hides the share pill
* with visibility: hidden, so as to keep other elements in the same place
* that they would otherwise be, while deflaking the tests. See #19890.
*/
.i-amphtml-story-share-pill {
visibility: hidden;
}
</style>
<script>
// TODO(#17108): Remove this when getMode().test is set.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
amp-story-page {
background: yellow;
}

/*
* The share pill text does not show in the same place consistently, and
* as such causes the visual tests to be flaky. This hides the share pill
* with visibility: hidden, so as to keep other elements in the same place
* that they would otherwise be, while deflaking the tests. See #19890.
*/
.i-amphtml-story-share-pill {
visibility: hidden;
}
</style>
<script>
// TODO(#17108): Remove this when getMode().test is set.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
background: white;
font-family: sans-serif;
}

/*
* The share pill text does not show in the same place consistently, and
* as such causes the visual tests to be flaky. This hides the share pill
* with visibility: hidden, so as to keep other elements in the same place
* that they would otherwise be, while deflaking the tests. See #19890.
*/
.i-amphtml-story-share-pill {
visibility: hidden;
}
</style>
<script>
// TODO(#17108): Remove this when getMode().test is set.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
background: white;
font-family: sans-serif;
}

/*
* The share pill text does not show in the same place consistently, and
* as such causes the visual tests to be flaky. This hides the share pill
* with visibility: hidden, so as to keep other elements in the same place
* that they would otherwise be, while deflaking the tests. See #19890.
*/
.i-amphtml-story-share-pill {
visibility: hidden;
}
</style>
<script>
// TODO(#17108): Remove this when getMode().test is set.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
background: white;
font-family: sans-serif;
}

/*
* The share pill text does not show in the same place consistently, and
* as such causes the visual tests to be flaky. This hides the share pill
* with visibility: hidden, so as to keep other elements in the same place
* that they would otherwise be, while deflaking the tests. See #19890.
*/
.i-amphtml-story-share-pill {
visibility: hidden;
}
</style>
<script>
// TODO(#17108): Remove this when getMode().test is set.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@
amp-story-page {
background-color: white;
}
/*
* The share pill text does not show in the same place consistently, and
* as such causes the visual tests to be flaky. This hides the share pill
* with visibility: hidden, so as to keep other elements in the same place
* that they would otherwise be, while deflaking the tests. See #19890.
*/
.i-amphtml-story-share-pill {
visibility: hidden;
}
</style>
<script type="application/ld+json">
{
Expand Down
9 changes: 9 additions & 0 deletions examples/visual-tests/amp-story/amp-story-sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@
/* Hide the spinner for loading pages, since this causes flakes */
display: none;
}
/*
* The share pill text does not show in the same place consistently, and
* as such causes the visual tests to be flaky. This hides the share pill
* with visibility: hidden, so as to keep other elements in the same place
* that they would otherwise be, while deflaking the tests. See #19890.
*/
.i-amphtml-story-share-pill {
visibility: hidden;
}
h1.hello-world {
color: white;
text-shadow: 3px 3px rgba(0, 0, 0, 0.5);
Expand Down
10 changes: 10 additions & 0 deletions examples/visual-tests/amp-story/amp-story-tooltip.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@
display: none;
}

/*
* The share pill text does not show in the same place consistently, and
* as such causes the visual tests to be flaky. This hides the share pill
* with visibility: hidden, so as to keep other elements in the same place
* that they would otherwise be, while deflaking the tests. See #19890.
*/
.i-amphtml-story-share-pill {
visibility: hidden;
}

h1.hello-world {
color: white;
text-shadow: 3px 3px rgba(0, 0, 0, 0.5);
Expand Down
10 changes: 10 additions & 0 deletions examples/visual-tests/amp-story/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@
display: none;
}

/*
* The share pill text does not show in the same place consistently, and
* as such causes the visual tests to be flaky. This hides the share pill
* with visibility: hidden, so as to keep other elements in the same place
* that they would otherwise be, while deflaking the tests. See #19890.
*/
.i-amphtml-story-share-pill {
visibility: hidden;
}

h1.hello-world {
color: white;
text-shadow: 3px 3px rgba(0, 0, 0, 0.5);
Expand Down
10 changes: 10 additions & 0 deletions examples/visual-tests/amp-story/basic.rtl.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@
display: none;
}

/*
* The share pill text does not show in the same place consistently, and
* as such causes the visual tests to be flaky. This hides the share pill
* with visibility: hidden, so as to keep other elements in the same place
* that they would otherwise be, while deflaking the tests. See #19890.
*/
.i-amphtml-story-share-pill {
visibility: hidden;
}

h1.hello-world {
color: white;
text-shadow: 3px 3px rgba(0, 0, 0, 0.5);
Expand Down
10 changes: 10 additions & 0 deletions examples/visual-tests/amp-story/embed-mode-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@
display: none;
}

/*
* The share pill text does not show in the same place consistently, and
* as such causes the visual tests to be flaky. This hides the share pill
* with visibility: hidden, so as to keep other elements in the same place
* that they would otherwise be, while deflaking the tests. See #19890.
*/
.i-amphtml-story-share-pill {
visibility: hidden;
}

h1#hello-world {
color: white;
text-align: center;
Expand Down
10 changes: 10 additions & 0 deletions examples/visual-tests/amp-story/embed-mode-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@
display: none;
}

/*
* The share pill text does not show in the same place consistently, and
* as such causes the visual tests to be flaky. This hides the share pill
* with visibility: hidden, so as to keep other elements in the same place
* that they would otherwise be, while deflaking the tests. See #19890.
*/
.i-amphtml-story-share-pill {
visibility: hidden;
}

h1#hello-world {
color: white;
text-align: center;
Expand Down
10 changes: 10 additions & 0 deletions examples/visual-tests/amp-story/info-dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@
display: none;
}

/*
* The share pill text does not show in the same place consistently, and
* as such causes the visual tests to be flaky. This hides the share pill
* with visibility: hidden, so as to keep other elements in the same place
* that they would otherwise be, while deflaking the tests. See #19890.
*/
.i-amphtml-story-share-pill {
visibility: hidden;
}

h1#hello-world {
color: white;
text-align: center;
Expand Down
10 changes: 10 additions & 0 deletions examples/visual-tests/amp-story/info-dialog.rtl.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@
display: none;
}

/*
* The share pill text does not show in the same place consistently, and
* as such causes the visual tests to be flaky. This hides the share pill
* with visibility: hidden, so as to keep other elements in the same place
* that they would otherwise be, while deflaking the tests. See #19890.
*/
.i-amphtml-story-share-pill {
visibility: hidden;
}

h1#hello-world {
color: white;
text-align: center;
Expand Down
10 changes: 10 additions & 0 deletions examples/visual-tests/amp-story/share-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@
display: none;
}

/*
* The share pill text does not show in the same place consistently, and
* as such causes the visual tests to be flaky. This hides the share pill
* with visibility: hidden, so as to keep other elements in the same place
* that they would otherwise be, while deflaking the tests. See #19890.
*/
.i-amphtml-story-share-pill {
visibility: hidden;
}

h1#hello-world {
color: white;
text-align: center;
Expand Down
10 changes: 10 additions & 0 deletions examples/visual-tests/amp-story/share-menu.rtl.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@
display: none;
}

/*
* The share pill text does not show in the same place consistently, and
* as such causes the visual tests to be flaky. This hides the share pill
* with visibility: hidden, so as to keep other elements in the same place
* that they would otherwise be, while deflaking the tests. See #19890.
*/
.i-amphtml-story-share-pill {
visibility: hidden;
}

h1#hello-world {
color: white;
text-align: center;
Expand Down

0 comments on commit 37f8cf2

Please sign in to comment.