Skip to content

Commit

Permalink
Merge pull request #180 from europeana/feat/MET-6016-Privacy-Statemen…
Browse files Browse the repository at this point in the history
…t-Update

Feat/met 6016 privacy statement update
  • Loading branch information
andyjmaclean authored Jul 15, 2024
2 parents de1d7b0 + eaaa99d commit d4bf7a5
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 44 deletions.
12 changes: 6 additions & 6 deletions cypress/e2e/privacy-policy.cy.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
context('Statistics Dashboard', () => {
describe('privacy policy', () => {
describe('privacy statement', () => {
beforeEach(() => {
cy.visit('/');
});

const selPrivacy = '[data-e2e="privacy-policy"]';
const selPrivacy = '[data-e2e="privacy-statement"]';

it('should show the privacy policy when the user goes there directly', () => {
it('should show the privacy statement when the user goes there directly', () => {
cy.get(selPrivacy).should('not.exist');
cy.visit('/privacy-policy');
cy.visit('/privacy-statement');
cy.get(selPrivacy).should('have.length', 1);
});

it('should show the privacy policy when the user clicks the footer link', () => {
it('should show the privacy statement when the user clicks the footer link', () => {
cy.get(selPrivacy).should('not.exist');
cy.get('a')
.contains('Privacy Policy')
.contains('Privacy Statement')
.should('have.length', 1)
.click({ force: true });
cy.get(selPrivacy).should('have.length', 1);
Expand Down
6 changes: 3 additions & 3 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ const routes: Routes = [
.CookiePolicyComponent
},
{
path: 'privacy-policy',
path: 'privacy-statement',
loadComponent: async () =>
(await import('./privacy-policy/privacy-policy.component'))
.PrivacyPolicyComponent
(await import('./privacy-statement/privacy-statement.component'))
.PrivacyStatementComponent
},
{
path: '',
Expand Down
4 changes: 2 additions & 2 deletions src/app/footer/footer.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
</li>
<li class="link-detail">
<a
routerLink="/privacy-policy"
routerLink="/privacy-statement"
i18n="Footer link text@@footerLinkTextPrivacy"
>Privacy Policy</a
>Privacy Statement</a
>
</li>
<li class="link-detail">
Expand Down
5 changes: 0 additions & 5 deletions src/app/legend-grid/legend-grid.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,6 @@ li {
flex-direction: column-reverse;
margin-bottom: -20px;
transform: translateY(-20px);

> ul {
//padding: 0.6em;
//border-left: 1px solid red;
}
}

.perma-pin-left {
Expand Down
1 change: 0 additions & 1 deletion src/app/privacy-policy/index.ts

This file was deleted.

17 changes: 0 additions & 17 deletions src/app/privacy-policy/privacy-policy.component.spec.ts

This file was deleted.

8 changes: 0 additions & 8 deletions src/app/privacy-policy/privacy-policy.component.ts

This file was deleted.

1 change: 1 addition & 0 deletions src/app/privacy-statement/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './privacy-statement.component';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="fit-to-page">
<div class="page-title-wrapper">
<h2 class="page-title" data-e2e="privacy-policy">Privacy Policy</h2>
<h2 class="page-title" data-e2e="privacy-statement">Privacy Statement</h2>
</div>
<p>
<strong>Processing operation</strong>
Expand Down
17 changes: 17 additions & 0 deletions src/app/privacy-statement/privacy-statement.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PrivacyStatementComponent } from '.';

describe('PrivacyStatementComponent', () => {
let component: PrivacyStatementComponent;
let fixture: ComponentFixture<PrivacyStatementComponent>;

beforeEach(() => {
fixture = TestBed.createComponent(PrivacyStatementComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
8 changes: 8 additions & 0 deletions src/app/privacy-statement/privacy-statement.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Component } from '@angular/core';

@Component({
standalone: true,
styleUrls: ['./privacy-statement.component.scss'],
templateUrl: './privacy-statement.component.html'
})
export class PrivacyStatementComponent {}
2 changes: 1 addition & 1 deletion src/locale/messages.en-GB.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@
<note priority="1" from="description">Footer link text</note>
</trans-unit>
<trans-unit id="footerLinkTextPrivacy" datatype="html">
<source>Privacy Policy</source>
<source>Privacy Statement</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/footer/footer.component.html</context>
<context context-type="linenumber">51</context>
Expand Down

0 comments on commit d4bf7a5

Please sign in to comment.