mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
Merge pull request #3064 from alexandrevryghem/minor-ui-improvements_contribute-7_x
[Port dspace-7_x] Fixed item-edit.cy.ts regularly failing & minor UI improvements
This commit is contained in:
@@ -18,6 +18,11 @@ describe('Edit Item > Edit Metadata tab', () => {
|
|||||||
// <ds-edit-item-page> tag must be loaded
|
// <ds-edit-item-page> tag must be loaded
|
||||||
cy.get('ds-edit-item-page').should('be.visible');
|
cy.get('ds-edit-item-page').should('be.visible');
|
||||||
|
|
||||||
|
// wait for all the ds-dso-edit-metadata-value components to be rendered
|
||||||
|
cy.get('ds-dso-edit-metadata-value div[role="row"]').each(($row: HTMLDivElement) => {
|
||||||
|
cy.wrap($row).find('div[role="cell"]').should('be.visible');
|
||||||
|
});
|
||||||
|
|
||||||
// Analyze <ds-edit-item-page> for accessibility issues
|
// Analyze <ds-edit-item-page> for accessibility issues
|
||||||
testA11y('ds-edit-item-page');
|
testA11y('ds-edit-item-page');
|
||||||
});
|
});
|
||||||
|
@@ -137,7 +137,7 @@ describe('New Submission page', () => {
|
|||||||
|
|
||||||
// Upload our DSpace logo via drag & drop onto submission form
|
// Upload our DSpace logo via drag & drop onto submission form
|
||||||
// cy.get('div#section_upload')
|
// cy.get('div#section_upload')
|
||||||
cy.get('div.ds-document-drop-zone').selectFile('src/assets/images/dspace-logo.png', {
|
cy.get('div.ds-document-drop-zone').selectFile('src/assets/images/dspace-logo.svg', {
|
||||||
action: 'drag-drop'
|
action: 'drag-drop'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<div class="container w-100 h-100">
|
<div class="container w-100 h-100">
|
||||||
<div class="text-center mt-5 row justify-content-center">
|
<div class="text-center mt-5 row justify-content-center">
|
||||||
<div>
|
<div>
|
||||||
<img class="mb-4 login-logo" src="assets/images/dspace-logo.png" alt="{{'repository.image.logo' | translate}}">
|
<img class="mb-4 login-logo" src="assets/images/dspace-logo.svg" [alt]="'repository.image.logo' | translate">
|
||||||
<h1 class="h3 mb-0 font-weight-normal">{{"login.form.header" | translate}}</h1>
|
<h1 class="h3 mb-0 font-weight-normal">{{"login.form.header" | translate}}</h1>
|
||||||
<ds-themed-log-in
|
<ds-themed-log-in
|
||||||
[isStandalonePage]="true"></ds-themed-log-in>
|
[isStandalonePage]="true"></ds-themed-log-in>
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<div class="container w-100 h-100">
|
<div class="container w-100 h-100">
|
||||||
<div class="text-center mt-5 row justify-content-md-center">
|
<div class="text-center mt-5 row justify-content-md-center">
|
||||||
<div class="mx-auto">
|
<div class="mx-auto">
|
||||||
<img class="mb-4 login-logo" src="assets/images/dspace-logo.png">
|
<img class="mb-4 login-logo" src="assets/images/dspace-logo.svg" [alt]="'repository.image.logo' | translate">
|
||||||
<h1 class="h3 mb-0 font-weight-normal">{{"logout.form.header" | translate}}</h1>
|
<h1 class="h3 mb-0 font-weight-normal">{{"logout.form.header" | translate}}</h1>
|
||||||
<ds-log-out></ds-log-out>
|
<ds-log-out></ds-log-out>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -11,9 +11,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="pt-2">
|
<div class="pt-2">
|
||||||
<ul class="nav nav-tabs justify-content-start mb-2">
|
<ul class="nav nav-tabs justify-content-start mb-2" role="tablist">
|
||||||
<li *ngFor="let page of pages" class="nav-item">
|
<li *ngFor="let page of pages" class="nav-item" role="presentation">
|
||||||
<a class="nav-link"
|
<a class="nav-link" role="tab"
|
||||||
|
[attr.aria-selected]="page === currentPage"
|
||||||
[ngClass]="{'active' : page === currentPage}"
|
[ngClass]="{'active' : page === currentPage}"
|
||||||
[routerLink]="['./' + page]"
|
[routerLink]="['./' + page]"
|
||||||
[attr.data-test]="page">
|
[attr.data-test]="page">
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<div class="dso-button-menu mb-1" ngbDropdown container="body" placement="bottom-right">
|
<div class="dso-button-menu mb-1" ngbDropdown container="body" placement="bottom-right">
|
||||||
<div class="d-flex flex-row flex-nowrap"
|
<div class="d-flex flex-row flex-nowrap"
|
||||||
[ngbTooltip]="itemModel.text | translate">
|
[ngbTooltip]="itemModel.text | translate" container="body">
|
||||||
<button [attr.aria-label]="itemModel.text | translate" [title]="itemModel.text | translate" class="btn btn-dark btn-sm" ngbDropdownToggle [disabled]="section.model?.disabled">
|
<button [attr.aria-label]="itemModel.text | translate" [title]="itemModel.text | translate" class="btn btn-dark btn-sm" ngbDropdownToggle [disabled]="section.model?.disabled">
|
||||||
<i class="fas fa-{{section.icon}} fa-fw"></i>
|
<i class="fas fa-{{section.icon}} fa-fw"></i>
|
||||||
</button>
|
</button>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div *ngIf="showThumbnails" class="offset-md-2"></div>
|
<div *ngIf="showThumbnails" class="offset-3 offset-md-2"></div>
|
||||||
<div [ngClass]="showThumbnails ? 'col-9' : 'col-md-12'">
|
<div [ngClass]="showThumbnails ? 'col-9' : 'col-md-12'">
|
||||||
<ds-themed-badges *ngIf="showLabel" [object]="dso" [context]="context"></ds-themed-badges>
|
<ds-themed-badges *ngIf="showLabel" [object]="dso" [context]="context"></ds-themed-badges>
|
||||||
<a *ngIf="linkType != linkTypes.None" [target]="(linkType == linkTypes.ExternalLink) ? '_blank' : '_self'" [attr.rel]="(linkType == linkTypes.ExternalLink) ? 'noopener noreferrer' : null" [routerLink]="['/communities/' + dso.id]" class="lead" [innerHTML]="dsoTitle"></a>
|
<a *ngIf="linkType != linkTypes.None" [target]="(linkType == linkTypes.ExternalLink) ? '_blank' : '_self'" [attr.rel]="(linkType == linkTypes.ExternalLink) ? 'noopener noreferrer' : null" [routerLink]="['/communities/' + dso.id]" class="lead" [innerHTML]="dsoTitle"></a>
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 8.4 KiB |
@@ -1,10 +0,0 @@
|
|||||||
<div class="container w-100 h-100">
|
|
||||||
<div class="text-center mt-5 row justify-content-center">
|
|
||||||
<div>
|
|
||||||
<img class="mb-4 login-logo" src="assets/images/dspace-logo.png">
|
|
||||||
<h1 class="h3 mb-0 font-weight-normal">{{"login.form.header" | translate}}</h1>
|
|
||||||
<ds-themed-log-in
|
|
||||||
[isStandalonePage]="true"></ds-themed-log-in>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
@@ -1,4 +0,0 @@
|
|||||||
.login-logo {
|
|
||||||
height: var(--ds-login-logo-height);
|
|
||||||
width: var(--ds-login-logo-width);
|
|
||||||
}
|
|
||||||
|
@@ -1,9 +0,0 @@
|
|||||||
<div class="container w-100 h-100">
|
|
||||||
<div class="text-center mt-5 row justify-content-md-center">
|
|
||||||
<div class="mx-auto">
|
|
||||||
<img class="mb-4 login-logo" src="assets/images/dspace-logo.png">
|
|
||||||
<h1 class="h3 mb-0 font-weight-normal">{{"logout.form.header" | translate}}</h1>
|
|
||||||
<ds-log-out></ds-log-out>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
@import '../login-page/login-page.component.scss';
|
|
||||||
|
Reference in New Issue
Block a user