Add the contact information of an employee who works in the department or ministry for the Crown parcel
+
-
-
- {{ owner.firstName + ' ' + owner.lastName }}
-
-
-
-
-
-
-
First Name:
-
{{ selectedOwner.firstName }}
-
-
-
Last Name:
-
{{ selectedOwner.lastName }}
-
-
-
Ministry or Department:
-
{{ selectedOwner.organizationName }}
-
-
-
Phone Number:
-
{{ selectedOwner.phoneNumber ?? '' | mask: '(000) 000-0000' }}
-
-
-
Email:
-
{{ selectedOwner.email }}
-
-
-
Crown Type:
-
- {{ selectedOwner.crownLandOwnerType === 'provincial' ? 'Provincial Crown' : '' }}
- {{ selectedOwner.crownLandOwnerType === 'federal' ? 'Federal Crown' : '' }}
+
+
+
+
+
+ {{owner.firstName + ' ' + owner.lastName}}
-
-
-
-
-
-
-
-
warning
-
This field is required
-
+
+
+
+
+
+
warning
+
This field is required
diff --git a/portal-frontend/src/app/features/notice-of-intents/edit-submission/parcels/parcel-entry/parcel-entry.component.scss b/portal-frontend/src/app/features/notice-of-intents/edit-submission/parcels/parcel-entry/parcel-entry.component.scss
index 1493a7c71..1b79a2de4 100644
--- a/portal-frontend/src/app/features/notice-of-intents/edit-submission/parcels/parcel-entry/parcel-entry.component.scss
+++ b/portal-frontend/src/app/features/notice-of-intents/edit-submission/parcels/parcel-entry/parcel-entry.component.scss
@@ -114,11 +114,15 @@ mat-button-toggle-group#isFarm {
.warning-banner {
margin-top: rem(8);
background-color: rgba(colors.$accent-color-light, 0.5);
- padding: rem(16);
.owner-details {
display: flex;
flex-direction: column;
+ padding: rem(16);
+ }
+
+ .owner-details-mobile {
+ padding: 0 0 0 10px;
}
.row {
diff --git a/portal-frontend/src/app/features/notice-of-intents/edit-submission/parcels/parcel-entry/parcel-entry.component.ts b/portal-frontend/src/app/features/notice-of-intents/edit-submission/parcels/parcel-entry/parcel-entry.component.ts
index 44c2adc6a..aab4dbddb 100644
--- a/portal-frontend/src/app/features/notice-of-intents/edit-submission/parcels/parcel-entry/parcel-entry.component.ts
+++ b/portal-frontend/src/app/features/notice-of-intents/edit-submission/parcels/parcel-entry/parcel-entry.component.ts
@@ -1,4 +1,4 @@
-import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
+import { Component, EventEmitter, HostListener, Input, OnInit, Output } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { MatButtonToggleChange } from '@angular/material/button-toggle';
import { MatDialog } from '@angular/material/dialog';
@@ -21,6 +21,7 @@ import { openFileInline } from '../../../../../shared/utils/file';
import { scrollToElement } from '../../../../../shared/utils/scroll-helper';
import { RemoveFileConfirmationDialogComponent } from '../../../../applications/alcs-edit-submission/remove-file-confirmation-dialog/remove-file-confirmation-dialog.component';
import { ParcelEntryConfirmationDialogComponent } from './parcel-entry-confirmation-dialog/parcel-entry-confirmation-dialog.component';
+import { MOBILE_BREAKPOINT } from '../../../../../shared/utils/breakpoints';
export interface ParcelEntryFormData {
uuid: string;
@@ -66,6 +67,7 @@ export class ParcelEntryComponent implements OnInit {
isCrownLand: boolean | null = null;
isCertificateOfTitleRequired = true;
showVirusError = false;
+ isMobile = false;
parcelType = new FormControl
(null, [Validators.required]);
pidPin = new FormControl({
@@ -180,6 +182,7 @@ export class ParcelEntryComponent implements OnInit {
return updatedOwner;
});
});
+ this.isMobile = window.innerWidth <= MOBILE_BREAKPOINT;
}
async onSearch() {
@@ -614,4 +617,9 @@ export class ParcelEntryComponent implements OnInit {
this.pidPinPlaceholder = 'Type PIN';
}
}
+
+ @HostListener('window:resize', ['$event'])
+ onWindowResize() {
+ this.isMobile = window.innerWidth <= MOBILE_BREAKPOINT;
+ }
}
diff --git a/portal-frontend/src/app/features/notice-of-intents/notice-of-intent-details/parcel/parcel.component.html b/portal-frontend/src/app/features/notice-of-intents/notice-of-intent-details/parcel/parcel.component.html
index a8ee39859..dd6e01302 100644
--- a/portal-frontend/src/app/features/notice-of-intents/notice-of-intent-details/parcel/parcel.component.html
+++ b/portal-frontend/src/app/features/notice-of-intents/notice-of-intent-details/parcel/parcel.component.html
@@ -105,37 +105,47 @@ Parcel #{{ parcelInd + 1 }}
Government Parcel Contact
- First Name
-
- {{ parcel.owners[0].firstName }}
-
-
- Last Name
-
- {{ parcel.owners[0].lastName }}
-
-
- Ministry or Department
-
- {{ parcel.owners[0].organizationName }}
-
-
- Phone
-
- {{ parcel.owners[0].phoneNumber ?? '' | mask : '(000) 000-0000' }}
-
-
- Email
-
- {{ parcel.owners[0].email }}
-
-
- Crown Type
-
- {{ parcel.owners[0].crownLandOwnerType === 'provincial' ? 'Provincial Crown' : '' }}
- {{ parcel.owners[0].crownLandOwnerType === 'federal' ? 'Federal Crown' : '' }}
-
-
+
+ First Name
+
+ {{ parcel.owners[0].firstName }}
+
+
+ Last Name
+
+ {{ parcel.owners[0].lastName }}
+
+
+ Ministry or Department
+
+ {{ parcel.owners[0].organizationName }}
+
+
+ Phone
+
+ {{ parcel.owners[0].phoneNumber ?? '' | mask : '(000) 000-0000' }}
+
+
+ Email
+
+ {{ parcel.owners[0].email }}
+
+
+ Crown Type
+
+ {{ parcel.owners[0].crownLandOwnerType === 'provincial' ? 'Provincial Crown' : '' }}
+ {{ parcel.owners[0].crownLandOwnerType === 'federal' ? 'Federal Crown' : '' }}
+
+
+
+
+
+
+
diff --git a/portal-frontend/src/app/shared/mobile/parcel-owner-mobile-card/parcel-owner-mobile-card.component.scss b/portal-frontend/src/app/shared/mobile/parcel-owner-mobile-card/parcel-owner-mobile-card.component.scss
index 4d9a5c88a..5f88b4c9c 100644
--- a/portal-frontend/src/app/shared/mobile/parcel-owner-mobile-card/parcel-owner-mobile-card.component.scss
+++ b/portal-frontend/src/app/shared/mobile/parcel-owner-mobile-card/parcel-owner-mobile-card.component.scss
@@ -45,4 +45,5 @@ span {
.crown {
background-color: transparent;
border-bottom: none;
+ padding: 10px;
}
From 50ef8cf469f55ef4f315e89e85ad004425fb54a7 Mon Sep 17 00:00:00 2001
From: abradat
Date: Tue, 23 Jul 2024 16:59:15 -0700
Subject: [PATCH 19/43] Remove redundant isMobile check
---
.../parcel-details/parcel-entry/parcel-entry.component.html | 1 -
1 file changed, 1 deletion(-)
diff --git a/portal-frontend/src/app/features/applications/edit-submission/parcel-details/parcel-entry/parcel-entry.component.html b/portal-frontend/src/app/features/applications/edit-submission/parcel-details/parcel-entry/parcel-entry.component.html
index 6c19ecd31..443bd20ef 100644
--- a/portal-frontend/src/app/features/applications/edit-submission/parcel-details/parcel-entry/parcel-entry.component.html
+++ b/portal-frontend/src/app/features/applications/edit-submission/parcel-details/parcel-entry/parcel-entry.component.html
@@ -350,7 +350,6 @@ OR
Date: Tue, 23 Jul 2024 17:29:10 -0700
Subject: [PATCH 20/43] Fix zero optional attachment causing error for
submission in mobile view
---
.../application-details/application-details.component.html | 2 +-
.../notice-of-intent-details.component.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/portal-frontend/src/app/features/applications/application-details/application-details.component.html b/portal-frontend/src/app/features/applications/application-details/application-details.component.html
index 1f364cc42..d274f3a22 100644
--- a/portal-frontend/src/app/features/applications/application-details/application-details.component.html
+++ b/portal-frontend/src/app/features/applications/application-details/application-details.component.html
@@ -343,7 +343,7 @@ 7. Optional Documents
[isLast]="last"
(fileClicked)="openFile(file)">
-
+
From 7bec470403fb15829f1c3efaeb390310570411d0 Mon Sep 17 00:00:00 2001
From: abradat
Date: Thu, 15 Aug 2024 11:10:13 -0700
Subject: [PATCH 22/43] Fix UI changes bugs and add contact email to
environment variable
Fix failings caused by added email validations and optional attachments dialog. Add primary contact email to environment variables.
---
.github/workflows/e2e-test.yml | 1 +
e2e/pages/portal/optional-attachments-page.ts | 16 ++++++++++++++++
e2e/template.env | 3 +++
e2e/tests/tur.spec.ts | 6 +++---
4 files changed, 23 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml
index 3439097a4..9a6a6fa2a 100644
--- a/.github/workflows/e2e-test.yml
+++ b/.github/workflows/e2e-test.yml
@@ -45,6 +45,7 @@ jobs:
ALCS_BASE_URL: ${{ inputs.alcsBaseUrl || 'https://alcs-dev.apps.silver.devops.gov.bc.ca' }}
BCEID_BASIC_USERNAME: ${{ secrets.BCEID_BASIC_USERNAME }}
BCEID_BASIC_PASSWORD: ${{ secrets.BCEID_BASIC_PASSWORD }}
+ PRIMARY_CONTACT_EMAIL: ${{ secrets.PRIMARY_CONTACT_EMAIL }}
run: npx playwright test
- uses: actions/upload-artifact@v4
if: always()
diff --git a/e2e/pages/portal/optional-attachments-page.ts b/e2e/pages/portal/optional-attachments-page.ts
index fd7ba2c75..2bad74b87 100644
--- a/e2e/pages/portal/optional-attachments-page.ts
+++ b/e2e/pages/portal/optional-attachments-page.ts
@@ -14,25 +14,36 @@ export interface OptionalAttachment {
export class OptionalAttachmentsPage {
readonly page: Page;
+ readonly addAttachmentButton: Locator;
+ readonly addButton: Locator;
readonly uploadButton: Locator;
readonly typeComboboxes: Locator;
readonly descriptionTextboxes: Locator;
constructor(page: Page) {
this.page = page;
+ this.addAttachmentButton = page.getByRole('button', {name: 'Add Attachment'});
this.uploadButton = page.getByRole('button', { name: 'Choose file to Upload', exact: true });
this.typeComboboxes = page.getByRole('combobox', { name: 'type' });
this.descriptionTextboxes = page.getByRole('textbox', { name: 'description' });
+ this.addButton = page.getByRole('button', {name: 'ADD', exact: true});
}
async addAttachments(attachments: OptionalAttachment[]) {
for (const { path, type, description } of attachments) {
+ await this.openUploadAttachmentDialog();
await this.uploadAttachment(path);
await this.setLastType(type);
await this.fillLastDescription(description);
+ await this.addAttachment();
}
}
+ async openUploadAttachmentDialog() {
+ await this.addAttachmentButton.click();
+ await this.page.waitForSelector('mat-dialog-container', {state: 'visible'});
+ }
+
async uploadAttachment(path: string) {
const fileChooserPromise = this.page.waitForEvent('filechooser');
await this.uploadButton.click();
@@ -48,4 +59,9 @@ export class OptionalAttachmentsPage {
async fillLastDescription(description: string) {
await this.descriptionTextboxes.last().fill(description);
}
+
+ async addAttachment() {
+ await this.addButton.click();
+ await this.page.waitForSelector('mat-dialog-container', {state: 'hidden'});
+ }
}
diff --git a/e2e/template.env b/e2e/template.env
index eabff5172..99dfedd9f 100644
--- a/e2e/template.env
+++ b/e2e/template.env
@@ -1,3 +1,4 @@
+# URL should be in the format of 'http://HOST:PORT'
PORTAL_BASE_URL=
ALCS_BASE_URL=
@@ -9,3 +10,5 @@ BCEID_LG_PASSWORD=
IDIR_USERNAME=
IDIR_PASSWORD=
+
+PRIMARY_CONTACT_EMAIL=
diff --git a/e2e/tests/tur.spec.ts b/e2e/tests/tur.spec.ts
index da70f3ae8..41d1f1e3c 100644
--- a/e2e/tests/tur.spec.ts
+++ b/e2e/tests/tur.spec.ts
@@ -39,7 +39,7 @@ test.describe.serial('Portal TUR submission and ALCS applicant info flow', () =>
firstName: 'John',
lastName: 'Doe',
phoneNumber: '(111) 111-1111',
- email: '1@1',
+ email: '1@1.com',
},
{
type: OwnerType.Organization,
@@ -48,7 +48,7 @@ test.describe.serial('Portal TUR submission and ALCS applicant info flow', () =>
firstName: 'Jane',
lastName: 'Doe',
phoneNumber: '(222) 222-2222',
- email: '2@2',
+ email: '2@2.com',
},
],
},
@@ -60,7 +60,7 @@ test.describe.serial('Portal TUR submission and ALCS applicant info flow', () =>
firstName: 'Person',
lastName: 'Human',
phoneNumber: '(555) 555-5555',
- email: '1@1',
+ email: process.env.PRIMARY_CONTACT_EMAIL!,
};
const authorizationLetterPaths = ['data/temp.txt', 'data/temp2.txt'];
const government = 'Peace River Regional District';
From bf12e81f07612cd622078fc61121b74253efe3a1 Mon Sep 17 00:00:00 2001
From: abradat
Date: Thu, 15 Aug 2024 12:12:50 -0700
Subject: [PATCH 23/43] Add E2E tests workflow to run on PR requests to main
branch
---
.github/workflows/e2e-test.yml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml
index 3439097a4..a15fe06ac 100644
--- a/.github/workflows/e2e-test.yml
+++ b/.github/workflows/e2e-test.yml
@@ -1,4 +1,4 @@
-name: E2E Testing w/ Playwright
+name: E2E
on:
workflow_dispatch:
inputs:
@@ -21,8 +21,12 @@ on:
schedule:
# 12:23 UTC (i.e., 5:23 am daily pacific time)
- cron: "23 12 * * *"
+ pull_request:
+ branches:
+ - main
jobs:
test:
+ name: Playwright Tests - ${{ matrix.node }}/${{ matrix.platform }}
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
From 5e791dc256d35663e9e41651380f04e4db3c984e Mon Sep 17 00:00:00 2001
From: abradat
Date: Thu, 15 Aug 2024 14:54:22 -0700
Subject: [PATCH 24/43] Fix long file name's overflow on document upload
component in mobile view
---
.../shared/file-drag-drop/file-drag-drop.component.scss | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/portal-frontend/src/app/shared/file-drag-drop/file-drag-drop.component.scss b/portal-frontend/src/app/shared/file-drag-drop/file-drag-drop.component.scss
index ad793932d..7b7a1b134 100644
--- a/portal-frontend/src/app/shared/file-drag-drop/file-drag-drop.component.scss
+++ b/portal-frontend/src/app/shared/file-drag-drop/file-drag-drop.component.scss
@@ -138,3 +138,10 @@ a {
}
}
}
+
+@media screen and (max-width: $tabletBreakpoint) {
+ .file-name {
+ word-break: break-all !important;
+ white-space: normal !important;
+ }
+}
From 6ed014e957596d7369176b6bf6daef682117191c Mon Sep 17 00:00:00 2001
From: abradat
Date: Thu, 15 Aug 2024 15:10:01 -0700
Subject: [PATCH 25/43] Fix e2e workflow name
---
.github/workflows/e2e-test.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml
index 82b4c1fa1..c95b7b605 100644
--- a/.github/workflows/e2e-test.yml
+++ b/.github/workflows/e2e-test.yml
@@ -26,7 +26,7 @@ on:
- main
jobs:
test:
- name: Playwright Tests - ${{ matrix.node }}/${{ matrix.platform }}
+ name: Playwright Tests
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
From 320d9189afaf446fb143d977671ed71bd24e01d2 Mon Sep 17 00:00:00 2001
From: abradat
Date: Thu, 15 Aug 2024 16:28:31 -0700
Subject: [PATCH 26/43] Fix e2e LFNG autocomplete field not working
---
e2e/pages/portal/government-page.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/e2e/pages/portal/government-page.ts b/e2e/pages/portal/government-page.ts
index 9c5a2a33b..5f13d4c84 100644
--- a/e2e/pages/portal/government-page.ts
+++ b/e2e/pages/portal/government-page.ts
@@ -11,7 +11,7 @@ export class GovernmentPage {
async fill(name: string) {
// Type half the name
- await this.textbox.fill(name.slice(0, Math.floor(name.length / 2)));
+ await this.textbox.pressSequentially(name.slice(0, Math.floor(name.length / 2)), {delay: 50});
// Find in autocomplete list
await this.page.getByText(name).click();
}
From 04b48d107272b879b5c16c878617299bd2205e3b Mon Sep 17 00:00:00 2001
From: abradat
Date: Mon, 19 Aug 2024 10:57:57 -0700
Subject: [PATCH 27/43] Upgrade Playwright version
---
e2e/package-lock.json | 76 ++++++++++++++++++++++++++++---------------
e2e/package.json | 2 +-
2 files changed, 51 insertions(+), 27 deletions(-)
diff --git a/e2e/package-lock.json b/e2e/package-lock.json
index a1a0c57df..5197fc505 100644
--- a/e2e/package-lock.json
+++ b/e2e/package-lock.json
@@ -9,7 +9,7 @@
"version": "0.1.0",
"license": "ISC",
"dependencies": {
- "@playwright/test": "^1.32.0",
+ "@playwright/test": "^1.46.1",
"dotenv": "^16.4.5"
},
"devDependencies": {
@@ -168,21 +168,17 @@
}
},
"node_modules/@playwright/test": {
- "version": "1.32.0",
- "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.32.0.tgz",
- "integrity": "sha512-zOdGloaF0jeec7hqoLqM5S3L2rR4WxMJs6lgiAeR70JlH7Ml54ZPoIIf3X7cvnKde3Q9jJ/gaxkFh8fYI9s1rg==",
+ "version": "1.46.1",
+ "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.46.1.tgz",
+ "integrity": "sha512-Fq6SwLujA/DOIvNC2EL/SojJnkKf/rAwJ//APpJJHRyMi1PdKrY3Az+4XNQ51N4RTbItbIByQ0jgd1tayq1aeA==",
"dependencies": {
- "@types/node": "*",
- "playwright-core": "1.32.0"
+ "playwright": "1.46.1"
},
"bin": {
"playwright": "cli.js"
},
"engines": {
- "node": ">=14"
- },
- "optionalDependencies": {
- "fsevents": "2.3.2"
+ "node": ">=18"
}
},
"node_modules/@types/json-schema": {
@@ -195,6 +191,7 @@
"version": "20.11.24",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.24.tgz",
"integrity": "sha512-Kza43ewS3xoLgCEpQrsT+xRo/EJej1y0kVYGiLFE1NEODXGzTfwiC6tXTLMQskn1X4/Rjlh0MQUvx9W+L9long==",
+ "dev": true,
"dependencies": {
"undici-types": "~5.26.4"
}
@@ -1410,15 +1407,32 @@
"url": "https://github.com/sponsors/jonschlinkert"
}
},
- "node_modules/playwright-core": {
- "version": "1.32.0",
- "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.32.0.tgz",
- "integrity": "sha512-Z9Ij17X5Z3bjpp6XKujGBp9Gv4eViESac9aDmwgQFUEJBW0K80T21m/Z+XJQlu4cNsvPygw33b6V1Va6Bda5zQ==",
+ "node_modules/playwright": {
+ "version": "1.46.1",
+ "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.46.1.tgz",
+ "integrity": "sha512-oPcr1yqoXLCkgKtD5eNUPLiN40rYEM39odNpIb6VE6S7/15gJmA1NzVv6zJYusV0e7tzvkU/utBFNa/Kpxmwng==",
+ "dependencies": {
+ "playwright-core": "1.46.1"
+ },
"bin": {
"playwright": "cli.js"
},
"engines": {
- "node": ">=14"
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "fsevents": "2.3.2"
+ }
+ },
+ "node_modules/playwright-core": {
+ "version": "1.46.1",
+ "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.46.1.tgz",
+ "integrity": "sha512-h9LqIQaAv+CYvWzsZ+h3RsrqCStkBHlgo6/TJlFst3cOTlLghBQlJwPOZKQJTKNaD3QIB7aAVQ+gfWbN3NXB7A==",
+ "bin": {
+ "playwright-core": "cli.js"
+ },
+ "engines": {
+ "node": ">=18"
}
},
"node_modules/prelude-ls": {
@@ -1717,7 +1731,8 @@
"node_modules/undici-types": {
"version": "5.26.5",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
- "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="
+ "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
+ "dev": true
},
"node_modules/uri-js": {
"version": "4.4.1",
@@ -1869,13 +1884,11 @@
"dev": true
},
"@playwright/test": {
- "version": "1.32.0",
- "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.32.0.tgz",
- "integrity": "sha512-zOdGloaF0jeec7hqoLqM5S3L2rR4WxMJs6lgiAeR70JlH7Ml54ZPoIIf3X7cvnKde3Q9jJ/gaxkFh8fYI9s1rg==",
+ "version": "1.46.1",
+ "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.46.1.tgz",
+ "integrity": "sha512-Fq6SwLujA/DOIvNC2EL/SojJnkKf/rAwJ//APpJJHRyMi1PdKrY3Az+4XNQ51N4RTbItbIByQ0jgd1tayq1aeA==",
"requires": {
- "@types/node": "*",
- "fsevents": "2.3.2",
- "playwright-core": "1.32.0"
+ "playwright": "1.46.1"
}
},
"@types/json-schema": {
@@ -1888,6 +1901,7 @@
"version": "20.11.24",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.24.tgz",
"integrity": "sha512-Kza43ewS3xoLgCEpQrsT+xRo/EJej1y0kVYGiLFE1NEODXGzTfwiC6tXTLMQskn1X4/Rjlh0MQUvx9W+L9long==",
+ "dev": true,
"requires": {
"undici-types": "~5.26.4"
}
@@ -2744,10 +2758,19 @@
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
"dev": true
},
+ "playwright": {
+ "version": "1.46.1",
+ "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.46.1.tgz",
+ "integrity": "sha512-oPcr1yqoXLCkgKtD5eNUPLiN40rYEM39odNpIb6VE6S7/15gJmA1NzVv6zJYusV0e7tzvkU/utBFNa/Kpxmwng==",
+ "requires": {
+ "fsevents": "2.3.2",
+ "playwright-core": "1.46.1"
+ }
+ },
"playwright-core": {
- "version": "1.32.0",
- "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.32.0.tgz",
- "integrity": "sha512-Z9Ij17X5Z3bjpp6XKujGBp9Gv4eViESac9aDmwgQFUEJBW0K80T21m/Z+XJQlu4cNsvPygw33b6V1Va6Bda5zQ=="
+ "version": "1.46.1",
+ "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.46.1.tgz",
+ "integrity": "sha512-h9LqIQaAv+CYvWzsZ+h3RsrqCStkBHlgo6/TJlFst3cOTlLghBQlJwPOZKQJTKNaD3QIB7aAVQ+gfWbN3NXB7A=="
},
"prelude-ls": {
"version": "1.2.1",
@@ -2929,7 +2952,8 @@
"undici-types": {
"version": "5.26.5",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
- "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="
+ "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
+ "dev": true
},
"uri-js": {
"version": "4.4.1",
diff --git a/e2e/package.json b/e2e/package.json
index 93a3bc609..bdd3291e3 100644
--- a/e2e/package.json
+++ b/e2e/package.json
@@ -19,7 +19,7 @@
},
"homepage": "https://github.com/bcgov/alcs#readme",
"dependencies": {
- "@playwright/test": "^1.32.0",
+ "@playwright/test": "^1.46.1",
"dotenv": "^16.4.5"
},
"devDependencies": {
From cd981333eb495875593f022a1aa778c108613e6c Mon Sep 17 00:00:00 2001
From: abradat
Date: Tue, 20 Aug 2024 15:22:23 -0700
Subject: [PATCH 28/43] Add mobile view for transferees in SRW
---
.../transferees/transferees.component.html | 17 +++++++-
.../transferees/transferees.component.scss | 12 ++++++
.../transferees/transferees.component.ts | 22 +++++++++-
.../notification-details.component.html | 40 ++++++++++-------
.../notification-details.component.scss | 4 ++
.../transferee-mobile-card.component.html | 25 +++++++++++
.../transferee-mobile-card.component.scss | 43 +++++++++++++++++++
.../transferee-mobile-card.component.ts | 26 +++++++++++
.../src/app/shared/shared.module.ts | 3 ++
9 files changed, 173 insertions(+), 19 deletions(-)
create mode 100644 portal-frontend/src/app/shared/mobile/transferee-mobile-card/transferee-mobile-card.component.html
create mode 100644 portal-frontend/src/app/shared/mobile/transferee-mobile-card/transferee-mobile-card.component.scss
create mode 100644 portal-frontend/src/app/shared/mobile/transferee-mobile-card/transferee-mobile-card.component.ts
diff --git a/portal-frontend/src/app/features/notifications/edit-submission/transferees/transferees.component.html b/portal-frontend/src/app/features/notifications/edit-submission/transferees/transferees.component.html
index eca671734..e693d93af 100644
--- a/portal-frontend/src/app/features/notifications/edit-submission/transferees/transferees.component.html
+++ b/portal-frontend/src/app/features/notifications/edit-submission/transferees/transferees.component.html
@@ -13,6 +13,7 @@ All Transferees
[ngClass]="{
'error-outline': transferees.length === 0 && showErrors
}"
+ class="add-btn"
(click)="onAdd()"
>
Add New Transferee
@@ -22,7 +23,7 @@ All Transferees
-