Commit 30b0626d authored by Fernando's avatar Fernando

Code review feedback on selectors

* Update legacy unit test selectors
parent b836bcf5
......@@ -169,7 +169,7 @@ export default {
<gl-link
v-if="reportContainsBlacklistedLicense && licenseComplianceDocsPath"
:href="licenseComplianceDocsPath"
class="js-security-approval-help-link"
data-testid="security-approval-help-link"
target="_blank"
>
<gl-icon :size="12" name="question" />
......
......@@ -338,7 +338,8 @@ describe('License Report MR Widget', () => {
});
describe('approval status', () => {
const findLicenseComplianceHelpLink = () => wrapper.find('.js-security-approval-help-link');
const findLicenseComplianceHelpLink = () =>
wrapper.find('[data-testid="security-approval-help-link"]');
it('does not show a link to security approval help page if report does not contain blacklisted licenses', () => {
mountComponent();
......
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