Skip to content

Commit c410fee

Browse files
bolmstengithub-actions[bot]
authored andcommitted
clean up tests from legacy fields
1 parent 634246b commit c410fee

3 files changed

Lines changed: 0 additions & 33 deletions

File tree

apps/backend/src/mutations/UserMutations.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ describe('updateUserByOidcSub', () => {
270270
expect(result).toEqual({
271271
...dummyUser,
272272
firstname: 'OfficerUpdatedJane',
273-
department: 'Updated Department',
274273
});
275274
});
276275
test('A user cannot update another user by OIDC sub', async () => {
@@ -308,8 +307,6 @@ describe('updateUserByOidcSub', () => {
308307

309308
expect(result).toEqual({
310309
...dummyUser,
311-
telephone: '+1-555-9999',
312-
position: 'Senior Architect',
313310
});
314311
});
315312

apps/e2e/cypress/e2e/personalInformation.cy.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@ context('Personal information tests', () => {
1212

1313
const newFirstName = faker.name.firstName();
1414
const newLastName = faker.name.lastName();
15-
const newDepartment = faker.commerce.department();
1615
const otherOrg = faker.commerce.department();
1716
const otherInstitution = 'Other';
1817
const newPreferredName = faker.hacker.noun();
19-
const newPosition = faker.random.word().split(' ')[0];
20-
const newTelephone = faker.phone.number('0##########');
2118

2219
it('Should be able to see user officer role in use', () => {
2320
if (featureFlags.getEnabledFeatures().get(FeatureId.USER_MANAGEMENT)) {
@@ -65,12 +62,6 @@ context('Personal information tests', () => {
6562

6663
cy.get("[name='preferredname']").clear().type(newPreferredName);
6764

68-
cy.get("[name='position']").clear().type(newPosition);
69-
70-
cy.get("[name='department']").clear().type(newDepartment);
71-
72-
cy.get("[name='telephone']").clear().type(newTelephone);
73-
7465
cy.get("[name='institutionId']").clear().type(otherInstitution);
7566

7667
cy.get('[data-cy="institution-options"] li')
@@ -92,12 +83,6 @@ context('Personal information tests', () => {
9283
cy.get("[name='preferredname']")
9384
.invoke('val')
9485
.should('eq', newPreferredName);
95-
96-
cy.get("[name='position']").invoke('val').should('eq', newPosition);
97-
98-
cy.get("[name='department']").invoke('val').should('eq', newDepartment);
99-
100-
cy.get("[name='telephone']").invoke('val').should('eq', newTelephone);
10186
});
10287

10388
it('User Officer should be able to see all and change roles if there are multiple', () => {

apps/e2e/cypress/e2e/userAdministration.cy.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ import initialDBData from '../support/initialDBData';
77
context('User administration tests', () => {
88
const newFirstName = faker.name.firstName();
99
const newLastName = faker.name.lastName();
10-
const newDepartment = faker.commerce.department();
1110
const newPrefferedName = faker.hacker.noun();
12-
const newPosition = faker.random.word().split(' ')[0];
13-
const newTelephone = faker.phone.number('0##########');
1411
const newInstitution = faker.company.name();
1512
const placeholderUser = initialDBData.users.placeholderUser;
1613
const title = faker.lorem.words(2);
@@ -38,12 +35,6 @@ context('User administration tests', () => {
3835

3936
cy.get("[name='preferredname']").clear().type(newPrefferedName);
4037

41-
cy.get("[name='position']").clear().type(newPosition);
42-
43-
cy.get("[name='department']").clear().type(newDepartment);
44-
45-
cy.get("[name='telephone']").clear().type(newTelephone);
46-
4738
cy.get("[name='otherInstitution']").clear().type(newInstitution);
4839

4940
cy.contains('Update Profile').click();
@@ -59,12 +50,6 @@ context('User administration tests', () => {
5950
cy.get("[name='preferredname']")
6051
.invoke('val')
6152
.should('eq', newPrefferedName);
62-
63-
cy.get("[name='position']").invoke('val').should('eq', newPosition);
64-
65-
cy.get("[name='department']").invoke('val').should('eq', newDepartment);
66-
67-
cy.get("[name='telephone']").invoke('val').should('eq', newTelephone);
6853
});
6954

7055
it('Should be able to invite user or fap reviewer by email', function () {

0 commit comments

Comments
 (0)