Skip to content

Commit

Permalink
⚗️ : trying to ignore build_commit component in percy
Browse files Browse the repository at this point in the history
  • Loading branch information
juwit committed Dec 19, 2019
1 parent 037ec7c commit a5b5629
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .percy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 1
snapshot:
# percy specific CSS used when rendering snapshots
# ignoring build_commit block, as it changes everytime !
percy-css: |
.build_commit {
display: none;
}
4 changes: 2 additions & 2 deletions src/main/resources/templates/vue_templates/sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
</div>
</div>
<div class="sidebar-footer">
<span th:if="${info[build] != null}"><i class="fas fa-tag"></i> <span th:text="${info.build.version}"></span></span>
<span class="build_version" th:if="${info[build] != null}"><i class="fas fa-tag"></i> <span th:text="${info.build.version}"></span></span>

<span th:if="${info[git] != null}"><i class="fab fa-github"></i> <span th:text="${info.git.commit.id}"></span></span>
<span class="build_commit" th:if="${info[git] != null}"><i class="fab fa-github"></i> <span th:text="${info.git.commit.id}"></span></span>
</div>
</nav>
</template>
Expand Down

0 comments on commit a5b5629

Please sign in to comment.