Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAS-132517 / 24.10.1 / Cloud credentials storJ text does not render link correctly (by AlexKarpov98) #11061

Merged
merged 2 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
<div class="name">{{ name }}</div>
</div>
<div class="body">
<p>{{ description }}</p>
<p [innerHTML]="description"></p>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ describe('CloudSyncProviderDescriptionComponent', () => {
it('should have the correct details for Storj', () => {
spectator.setInput('provider', CloudSyncProviderName.Storj);

expect(spectator.component.image).toBe('/assets/images/cloudsync/STORJ_IX.png');
expect(spectator.component.name).toBe('Storj');
expect(spectator.component.description).toBe('StorJ is an S3 compatible, fault tolerant, globally distributed cloud storage platform with a security first approach to backup and recovery - delivering extreme resilience and performance both sustainably and economically. <a href="https://truenas.com/storj" target="_blank">TrueNAS and Storj</a> have partnered to streamline delivery of Hybrid Cloud solutions globally.');
const image = spectator.query('.image img');
expect(image).toHaveAttribute('src', '/assets/images/cloudsync/STORJ_IX.png');

const name = spectator.query('.name');
expect(name).toHaveText('Storj');

const description = spectator.query('.body');
expect(description).not.toContain('<a href');
});
});
Loading