-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Romuald Caplier
committed
Aug 29, 2024
1 parent
f11b783
commit 6ea11fb
Showing
3 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,12 +70,39 @@ 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(() => { | ||
cy.login('admin', 'admin', false) | ||
|
||
// Alpine convention record | ||
cy.visit('/edit/accroche_velos') | ||
|
||
cy.get('@accessAndContactPageSelectorButton').click() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ export const REGION_HAUT_DE_FRANCE_ORG_FIXTURE = (): Organization => ({ | |
email: '[email protected]', | ||
website: new URL('https://region-haut-de-france.com/'), | ||
logoUrl: new URL('https://region-haut-de-france.com/logo.png'), | ||
recordCount: 27, | ||
recordCount: 4, | ||
}) | ||
|
||
export const ORGANISATIONS_FIXTURE: Organization[] = deepFreeze([ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters