Fleet: refactoring data-testids

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia 2025-02-21 12:22:04 +01:00
parent 805690623d
commit 357746bf19
No known key found for this signature in database
GPG Key ID: E6D011B7415D4393
2 changed files with 2 additions and 2 deletions

View File

@ -519,7 +519,7 @@ export default {
<router-link
v-if="value.createdBy.location"
:to="value.createdBy.location"
data-testid="masthead-subheader-createdBy_link"
data-testid="masthead-subheader-createdBy-link"
>
{{ value.createdBy.displayName }}
</router-link>

View File

@ -51,7 +51,7 @@ describe('component: Masthead', () => {
});
const container = wrapper.find('[data-testid="masthead-subheader-createdBy"]');
const link = wrapper.find('[data-testid="masthead-subheader-createdBy_link"]');
const link = wrapper.find('[data-testid="masthead-subheader-createdBy-link"]');
const plainText = wrapper.find('[data-testid="masthead-subheader-createdBy_plain-text"]');
expect(link.exists()).toBe(showLink);