Commit dac4209a authored by samdbeckham's avatar samdbeckham

Makes tests case insensitive

.
parent b5bec4b9
......@@ -52,15 +52,15 @@ describe('Security Dashboard Table Row', () => {
});
it('should render the severity', () => {
expect(vm.$el.querySelectorAll('.table-mobile-content')[0].textContent).toContain(
props.vulnerability.severity,
);
expect(
vm.$el.querySelectorAll('.table-mobile-content')[0].textContent.toLowerCase(),
).toContain(props.vulnerability.severity);
});
it('should render the confidence', () => {
expect(vm.$el.querySelectorAll('.table-mobile-content')[2].textContent).toContain(
props.vulnerability.confidence,
);
expect(
vm.$el.querySelectorAll('.table-mobile-content')[2].textContent.toLowerCase(),
).toContain(props.vulnerability.confidence);
});
describe('the project name', () => {
......
......@@ -23,7 +23,7 @@ describe('Vulnerability Count List', () => {
it('should fetch the counts for each severity', () => {
const firstCount = vm.$el.querySelector('.js-count');
expect(firstCount.textContent).toContain('critical');
expect(firstCount.textContent).toContain('Critical');
expect(firstCount.textContent).toContain(mockData.critical);
});
......
......@@ -21,7 +21,7 @@ describe('Vulnerability Count', () => {
it('should render the severity label', () => {
const header = vm.$el.querySelector('.vulnerability-count-header');
expect(header.textContent).toMatch(props.severity);
expect(header.textContent.toLowerCase()).toMatch(props.severity);
});
it('should render the count', () => {
......
......@@ -172,7 +172,7 @@ describe('Security Reports modal', () => {
it('renders severity with a badge', () => {
const badge = vm.$el.querySelector('.severity-badge');
expect(badge.textContent).toContain('critical');
expect(badge.textContent).toContain('Critical');
});
});
});
......
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