summaryrefslogtreecommitdiff
path: root/spec/frontend/reports/grouped_test_report/components
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/reports/grouped_test_report/components')
-rw-r--r--spec/frontend/reports/grouped_test_report/components/modal_spec.js9
-rw-r--r--spec/frontend/reports/grouped_test_report/components/test_issue_body_spec.js2
2 files changed, 7 insertions, 4 deletions
diff --git a/spec/frontend/reports/grouped_test_report/components/modal_spec.js b/spec/frontend/reports/grouped_test_report/components/modal_spec.js
index 303009bab3a..3de81f754fd 100644
--- a/spec/frontend/reports/grouped_test_report/components/modal_spec.js
+++ b/spec/frontend/reports/grouped_test_report/components/modal_spec.js
@@ -15,7 +15,10 @@ describe('Grouped Test Reports Modal', () => {
// populate data
modalDataStructure.execution_time.value = 0.009411;
modalDataStructure.system_output.value = 'Failure/Error: is_expected.to eq(3)\n\n';
- modalDataStructure.class.value = 'link';
+ modalDataStructure.filename.value = {
+ text: 'link',
+ path: '/file/path',
+ };
let wrapper;
@@ -43,9 +46,9 @@ describe('Grouped Test Reports Modal', () => {
it('renders link', () => {
const link = wrapper.findComponent(GlLink);
- expect(link.attributes().href).toEqual(modalDataStructure.class.value);
+ expect(link.attributes().href).toEqual(modalDataStructure.filename.value.path);
- expect(link.text()).toEqual(modalDataStructure.class.value);
+ expect(link.text()).toEqual(modalDataStructure.filename.value.text);
});
it('renders seconds', () => {
diff --git a/spec/frontend/reports/grouped_test_report/components/test_issue_body_spec.js b/spec/frontend/reports/grouped_test_report/components/test_issue_body_spec.js
index e03a52aad8d..2f6f62ca1d3 100644
--- a/spec/frontend/reports/grouped_test_report/components/test_issue_body_spec.js
+++ b/spec/frontend/reports/grouped_test_report/components/test_issue_body_spec.js
@@ -52,7 +52,7 @@ describe('Test issue body', () => {
});
it('renders issue name', () => {
- expect(findDescription().text()).toBe(failedIssue.name);
+ expect(findDescription().text()).toContain(failedIssue.name);
});
it('renders failed status icon', () => {