Skip to content

Commit

Permalink
refactor(lib): refactored UserModel
Browse files Browse the repository at this point in the history
  • Loading branch information
Romuald Caplier committed Aug 29, 2024
1 parent 6ea11fb commit 6e317bc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
28 changes: 0 additions & 28 deletions apps/metadata-editor-e2e/src/e2e/edit.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,34 +70,6 @@ describe('editor form', () => {
cy.get('md-editor-publish-button').click()
})

describe('New record', () => {
beforeEach(() => {
cy.login('barbie', 'p4ssworD_', false)

cy.visit('/create')

cy.get('@accessAndContactPageSelectorButton').click()
})

it('should have the connected user information prefilled in the contacts for resource of the dataset', () => {
cy.get('[data-test=displayedRoles]').children().should('have.length', 1)

cy.get('[data-test=displayedRoles]')
.children()
.find('gn-ui-contact-card')
.get('[data-test=contactCardName]')
.invoke('text')
.should('contain', 'Barbara Roberts')

cy.get('[data-test=displayedRoles]')
.children()
.find('gn-ui-contact-card')
.get('[data-test=contactCardEmail]')
.invoke('text')
.should('contain', '[email protected]')
})
})

describe('record fields', () => {
describe('contacts for resources', () => {
beforeEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion libs/common/domain/src/lib/model/user/user.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ export interface UserModel {
name: string
surname: string
email: string
organisation: string
organisation?: string
profileIcon?: string
}

0 comments on commit 6e317bc

Please sign in to comment.