Commit f24b5949 authored by Scott Hampton's avatar Scott Hampton

Change trace spec to find wrapper

Instead of just finding the system output,
we should be checking that the whole section
is hidden/shown so that we are also handling
the section name correctly.
parent 5e1a7415
......@@ -53,9 +53,13 @@ export default {
</div>
</div>
<div v-if="testCase.system_output" class="gl-display-flex gl-flex-wrap gl-mx-n4 gl-my-3">
<div
v-if="testCase.system_output"
class="gl-display-flex gl-flex-wrap gl-mx-n4 gl-my-3"
data-testid="test-case-trace"
>
<strong class="gl-text-right col-sm-3">{{ $options.text.trace }}</strong>
<div class="col-sm-9" data-testid="test-case-trace">
<div class="col-sm-9">
<code-block :code="testCase.system_output" />
</div>
</div>
......
......@@ -60,7 +60,7 @@ describe('Test case details', () => {
it('renders the test case system output', () => {
createComponent();
expect(findSystemOutput().text()).toBe(defaultTestCase.system_output);
expect(findSystemOutput().text()).toContain(defaultTestCase.system_output);
});
});
......
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