Skip to content

Commit e48437a

Browse files
authored
Merge pull request #1348 from bcgov/test
Test
2 parents 8c5a937 + c0ed3e7 commit e48437a

244 files changed

Lines changed: 24160 additions & 1347 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

applications/Unity.AutoUI/cypress/e2e/chefsdata.cy.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1+
/// <reference types="cypress" />
12
describe('Unity Login and check data from CHEFS', () => {
3+
24
it('Verify Login', () => {
35
cy.login()
46
})
57
// 19.) Verify that the info panel populates with mapped data
68
it('Verify the UI is populated with valid data from CHEFS', () => {
9+
710
cy.getSubmissionDetail('confirmationID').then(id => {cy.log(`Confirmation ID: ${id}`);});
11+
812
cy.get('#search').should('exist').clear(); // Ensure the field exists and clear its contents
913
cy.get('#search').click() // click the search field
1014
cy.getSubmissionDetail('confirmationID').then(id => cy.get('#search').type(id)); // Fetch the confirmation ID and type it into the search field
1115
cy.getSubmissionDetail('confirmationID').then(id => cy.contains('tr', id).find('.checkbox-select').click()); // Fetch the confirmation ID, find its row, and click the checkbox
16+
1217
cy.get('#applicationLink').should('exist').click() // open the info panel
1318
// 19.) Verify that the info panel populates with mapped data
1419
// Category: AutoUI
@@ -153,17 +158,15 @@ describe('Unity Login and check data from CHEFS', () => {
153158
})
154159
// 25 Verify that the Payment Info tab populates with mapped data
155160
cy.get('#nav-payment-info-tab').should('exist').click() // open the Payment Info tab
156-
// Requested Amount: 89000.00
157-
cy.get('#RequestedAmount').should('have.value', '89000.00')
161+
// Requested Amount: 89,000.00
162+
cy.get('#RequestedAmount').should('have.value', '89,000.00')
158163
// 26.) Verify that the Submission tab populates with all form data
159164
cy.get('#nav-summery-tab').should('exist').click() // open the Submission tab
160-
cy.getSubmissionDetail('formObjectID').then(formId => { // Fetch formObjectID
161-
let headers = ['1. INTRODUCTION','2. ELIGIBILITY','3. APPLICANT INFORMATION','4. PROJECT INFORMATION','5. PROJECT TIMELINES','6. PROJECT BUDGET','7. ATTESTATION']; // Define headers
162-
headers.forEach((header, index) => { // Iterate over headers
163-
cy.get(`#${formId} > div:nth-child(${index + 1}) > div.card-header.bg-default > h4`) // Select header element
164-
.should('contain', header) // Assert header text
165-
.click(); // Click header to expand/collapse
166-
});
165+
const headers = ['1. INTRODUCTION', '2. ELIGIBILITY', '3. APPLICANT INFORMATION','4. PROJECT INFORMATION', '5. PROJECT TIMELINES', '6. PROJECT BUDGET', '7. ATTESTATION'];
166+
headers.forEach(header => {
167+
cy.contains('h4', header)
168+
.should('exist')
169+
.click();
167170
});
168171
})
169172
it('Verify Logout', () => {

applications/Unity.AutoUI/cypress/e2e/lists.cy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
describe('Grant Manager Login and List Navigation', () => {
2+
23
it('Verify Login', () => {
34
cy.login()
45
})
56
// 12.) Ensure all of the lists are populated.
67
it('Verify Applications, Roles, Users, Intakes, Forms, Dashboard lists are populated', () => {
7-
// 12.) Verify Default Grant Program tenant is selected.
8+
// Verify Default Grant Program tenant is selected.
89
cy.get('.unity-user-initials').should('exist').click()
910
cy.get('#user-dropdown .btn-dropdown span').should('contain', 'Default Grants Program')
1011
// 13.) Applications

applications/Unity.AutoUI/cypress/e2e/login.cy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
describe('Grant Manager Login and Logout', () => {
2+
23
it('Verify Default Grant Program tenant is selected.', () => {
34
cy.login()
45
cy.get('.unity-user-initials').should('exist').click()

applications/Unity.AutoUI/cypress/e2e/navigation.cy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
describe('Grant Manager Login and Top Navigation', () => {
2+
23
it('Verify Login', () => {
34
cy.login()
45
})

applications/Unity.AutoUI/cypress/fixtures/submissions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{
1414
"unityEnv": "TEST",
1515
"confirmationID": "68090C5E",
16-
"formObjectID": "efkdeiq"
16+
"formObjectID": "evigmss"
1717
},
1818
{
1919
"unityEnv": "UAT",

applications/Unity.AutoUI/cypress/support/commands.ts

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,22 @@ Cypress.Commands.add('getMetabaseDetail', (key: string) => {
7575
});
7676

7777
Cypress.Commands.add('metabaseLogin', () => {
78-
cy.getMetabaseDetail('baseURL').then(baseURL => {cy.visit(baseURL); // Visit the URL fetched from metabase.json
79-
cy.get('#root > div > div > main > div > div.emotion-iq817s.euvero02 > div > div.emotion-1spv9yy > div > form > div:nth-child(1) > div.emotion-17sifsc.edcfyzd6 > input[name="username"]')
80-
.should('exist')
81-
.click();
82-
cy.get('#root > div > div > main > div > div.emotion-iq817s.euvero02 > div > div.emotion-1spv9yy > div > form > div:nth-child(1) > div.emotion-17sifsc.edcfyzd6 > input[name="username"]')
83-
.type('iDontHave@ValidEmail.com'); // the test account doesn't have an email address
84-
cy.get('#root > div > div > main > div > div.emotion-iq817s.euvero02 > div > div.emotion-1spv9yy > div > form > div:nth-child(2) > div.emotion-17sifsc.edcfyzd6 > input[name="password"]')
78+
cy.getMetabaseDetail('baseURL').then((baseURL) => {
79+
cy.visit(baseURL);
80+
81+
// Target the username field using its `name` attribute
82+
cy.get('input[name="username"]')
8583
.should('exist')
86-
.click();
87-
cy.get('#root > div > div > main > div > div.emotion-iq817s.euvero02 > div > div.emotion-1spv9yy > div > form > div:nth-child(2) > div.emotion-17sifsc.edcfyzd6 > input[name="password"]')
84+
.click()
85+
.type('iDontHave@ValidEmail.com'); // Placeholder email address
86+
87+
// Target the password field using its `name` attribute
88+
cy.get('input[name="password"]')
8889
.should('exist')
89-
.type('pointless'); // there's no point adding a valid password yet because the test account doesn't have an email address
90-
//.type(Cypress.env('test1password'))
90+
.click()
91+
.type('pointless'); // Placeholder password
9192
});
92-
});
93+
});
9394

9495
interface chefsDetail {
9596
unityEnv: string;

applications/Unity.GrantManager/modules/Unity.Flex/src/Unity.Flex.Application.Contracts/Scoresheets/QuestionDto.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ public class QuestionDto : ExtensibleEntityDto<Guid>
1212
public virtual string Name { get; set; } = string.Empty;
1313
public virtual string Label { get; set; } = string.Empty;
1414
public virtual string? Description { get; set; }
15-
public virtual bool Enabled { get; private set; }
1615
public virtual QuestionType Type { get; set; }
1716
public virtual uint Order { get; set; }
1817

applications/Unity.GrantManager/modules/Unity.Flex/src/Unity.Flex.Application/Domain/WorksheetInstances/CustomFieldValue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace Unity.Flex.Domain.WorksheetInstances
77
{
8-
public class CustomFieldValue : FullAuditedEntity<Guid>, IMultiTenant
8+
public class CustomFieldValue : AuditedEntity<Guid>, IMultiTenant
99
{
1010
[Column(TypeName = "jsonb")]
1111
public virtual string CurrentValue { get; private set; } = "{}";

applications/Unity.GrantManager/modules/Unity.Flex/src/Unity.Flex.Web/FlexWebModule.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
using Microsoft.AspNetCore.Mvc.RazorPages;
22
using Microsoft.Extensions.DependencyInjection;
33
using Unity.Flex.Localization;
4-
using Unity.Flex.Web.Menus;
54
using Volo.Abp.AspNetCore.Mvc.Localization;
65
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared;
76
using Volo.Abp.AutoMapper;
87
using Volo.Abp.Modularity;
9-
using Volo.Abp.UI.Navigation;
108
using Volo.Abp.VirtualFileSystem;
119

1210
namespace Unity.Flex.Web;
@@ -33,7 +31,7 @@ public override void PreConfigureServices(ServiceConfigurationContext context)
3331

3432
public override void ConfigureServices(ServiceConfigurationContext context)
3533
{
36-
34+
3735

3836
Configure<AbpVirtualFileSystemOptions>(options =>
3937
{

applications/Unity.GrantManager/modules/Unity.Flex/src/Unity.Flex.Web/Pages/Components/DataGrid/DataGridReadService.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.Collections.Generic;
33
using System.Text.Json;
44
using System.Threading.Tasks;
5-
using Unity.Flex.Web.Views.Shared.Components.DataGridWidget;
65
using Unity.Flex.Web.Views.Shared.Components.WorksheetInstanceWidget.ViewModels;
76
using Unity.Flex.WorksheetInstances;
87
using Unity.Flex.Worksheets;

0 commit comments

Comments
 (0)