Commit e23c80e8 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '215883-refactor-pipelines-spec-computed-props' into 'master'

Remove computed props checks from pipelines specs

See merge request gitlab-org/gitlab!42564
parents 358ab305 71eac33b
...@@ -48,6 +48,7 @@ export default { ...@@ -48,6 +48,7 @@ export default {
variant="info" variant="info"
category="primary" category="primary"
class="js-get-started-pipelines" class="js-get-started-pipelines"
data-testid="get-started-pipelines"
> >
{{ s__('Pipelines|Get started with Pipelines') }} {{ s__('Pipelines|Get started with Pipelines') }}
</gl-button> </gl-button>
......
...@@ -46,6 +46,7 @@ export default { ...@@ -46,6 +46,7 @@ export default {
variant="success" variant="success"
category="primary" category="primary"
class="js-run-pipeline" class="js-run-pipeline"
data-testid="run-pipeline-button"
> >
{{ s__('Pipelines|Run Pipeline') }} {{ s__('Pipelines|Run Pipeline') }}
</gl-button> </gl-button>
...@@ -54,12 +55,13 @@ export default { ...@@ -54,12 +55,13 @@ export default {
v-if="resetCachePath" v-if="resetCachePath"
:loading="isResetCacheButtonLoading" :loading="isResetCacheButtonLoading"
class="js-clear-cache" class="js-clear-cache"
data-testid="clear-cache-button"
@click="onClickResetCache" @click="onClickResetCache"
> >
{{ s__('Pipelines|Clear Runner Caches') }} {{ s__('Pipelines|Clear Runner Caches') }}
</gl-button> </gl-button>
<gl-button v-if="ciLintPath" :href="ciLintPath" class="js-ci-lint"> <gl-button v-if="ciLintPath" :href="ciLintPath" class="js-ci-lint" data-testid="ci-lint-button">
{{ s__('Pipelines|CI Lint') }} {{ s__('Pipelines|CI Lint') }}
</gl-button> </gl-button>
</div> </div>
......
...@@ -58,7 +58,12 @@ export default { ...@@ -58,7 +58,12 @@ export default {
active: tab.isActive, active: tab.isActive,
}" }"
> >
<a :class="`js-${scope}-tab-${tab.scope}`" role="button" @click="onTabClick(tab)"> <a
:class="`js-${scope}-tab-${tab.scope}`"
:data-testid="`${scope}-tab-${tab.scope}`"
role="button"
@click="onTabClick(tab)"
>
{{ tab.name }} {{ tab.name }}
<span v-if="shouldRenderBadge(tab.count)" class="badge badge-pill"> {{ tab.count }} </span> <span v-if="shouldRenderBadge(tab.count)" class="badge badge-pill"> {{ tab.count }} </span>
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment