-
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.
Merge branch 'develop' into ME-checkbox-for-rcords-table
- Loading branch information
Showing
50 changed files
with
1,207 additions
and
194 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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
describe('my-org', () => { | ||
beforeEach(() => { | ||
cy.loginGN('barbie', 'p4ssworD_', false) | ||
cy.visit(`/records/my-org`) | ||
cy.get('md-editor-dashboard-menu').find('a').first().click() | ||
cy.get('main').children('div').first().children('div').eq(1).as('linkGroup') | ||
}) | ||
describe('my-org display', () => { | ||
it('should show my-org name and logo', () => { | ||
cy.get('h1').should('not.have.text', '') | ||
cy.get('gn-ui-thumbnail') | ||
}) | ||
it('should show the user and record count', () => { | ||
cy.get('@linkGroup') | ||
.find('a') | ||
.children('span') | ||
.first() | ||
.should('not.have.text', '') | ||
cy.get('@linkGroup') | ||
.find('gn-ui-button') | ||
.children('span') | ||
.first() | ||
.should('not.have.text', '') | ||
}) | ||
it('should show my-org records', () => { | ||
cy.get('.grid').should('have.length.above', 0) | ||
}) | ||
}) | ||
describe('routing', () => { | ||
it('should access the datahub with a filter', () => { | ||
cy.get('@linkGroup').find('a').click() | ||
cy.url().should('include', 'search/publisher=') | ||
}) | ||
it('should access the user list page and show my-org users', () => { | ||
cy.visit(`/records/my-org`) | ||
cy.get('md-editor-dashboard-menu').find('a').first().click() | ||
cy.get('@linkGroup').find('gn-ui-button').click() | ||
cy.url().should('include', '/users/my-org') | ||
cy.get('.grid').should('have.length.above', 0) | ||
cy.get('h1').should('not.have.text', '') | ||
cy.get('gn-ui-thumbnail') | ||
}) | ||
}) | ||
}) |
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
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
7 changes: 7 additions & 0 deletions
7
apps/metadata-editor/src/app/my-org-users/my-org-users.component.css
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.record-table-col { | ||
@apply px-5 py-3 items-center truncate; | ||
} | ||
|
||
.record-table-header { | ||
@apply record-table-col capitalize; | ||
} |
6 changes: 6 additions & 0 deletions
6
apps/metadata-editor/src/app/my-org-users/my-org-users.component.html
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<md-editor-records-list | ||
[users]="orgData.userList" | ||
[logo]="orgData.logoUrl" | ||
[title]="orgData.orgName" | ||
> | ||
</md-editor-records-list> |
Oops, something went wrong.