Skip to content

Commit

Permalink
fix(ui): navigate to dashboard when re-running tests from coverage pa…
Browse files Browse the repository at this point in the history
…ge (#3529)
  • Loading branch information
userquin committed Jun 7, 2023
1 parent 8d3cf9d commit bc283ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui/client/components/Navigation.vue
Expand Up @@ -32,7 +32,7 @@ async function onRunAll(files?: File[]) {
if (coverageEnabled.value) {
disableCoverage.value = true
await nextTick()
if (coverageEnabled.value) {
if (coverageVisible.value) {
showDashboard(true)
await nextTick()
}
Expand Down Expand Up @@ -94,7 +94,7 @@ async function onRunAll(files?: File[]) {
v-tooltip.bottom="filteredTests ? (filteredTests.length === 0 ? 'No test to run (clear filter)' : 'Rerun filtered') : 'Rerun all'"
:disabled="filteredTests?.length === 0"
icon="i-carbon:play"
@click="runAll(filteredTests)"
@click="onRunAll(filteredTests)"
/>
<IconButton
v-tooltip.bottom="`Toggle to ${toggleMode} mode`"
Expand Down

0 comments on commit bc283ae

Please sign in to comment.