-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
37 changed files
with
548 additions
and
430 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { cleanupUser, setupUser } from '../support/helpers'; | ||
|
||
context('metis-ui', () => { | ||
describe('log', () => { | ||
const force = { force: true }; | ||
const selectorModal = '.modal'; | ||
const selectorOpener = '[data-e2e="open-log"]'; | ||
|
||
beforeEach(() => { | ||
cy.server(); | ||
setupUser(); | ||
cy.visit('/dataset/edit/0'); | ||
cy.wait(1000); | ||
}); | ||
|
||
afterEach(() => { | ||
cleanupUser(); | ||
}); | ||
|
||
it('should open the log', () => { | ||
cy.get(selectorModal).should('not.exist'); | ||
cy.get(selectorOpener) | ||
.eq(0) | ||
.click(force); | ||
cy.get(selectorModal).should('have.length', 1); | ||
}); | ||
}); | ||
}); |
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
42 changes: 22 additions & 20 deletions
42
projects/metis/src/app/dataset/datasetlog/datasetlog.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 |
---|---|---|
@@ -1,20 +1,22 @@ | ||
<div class="modal-wrapper"> | ||
<div class="modal"> | ||
<div class="head"> | ||
{{ 'log' | translate }} {{ showPluginLog.pluginType | ||
}}<a class="btn-close" (click)="closeLog()"></a> | ||
</div> | ||
<div class="content"> | ||
<app-load-animation [resources]="{ logs: true }" *ngIf="isFirstLoading"></app-load-animation> | ||
<p *ngIf="noLogMessage">{{ noLogMessage }}</p> | ||
<p *ngFor="let msg of logMessages"> | ||
{{ msg.resourceNum }} <strong>{{ msg.state }} {{ msg.info }}</strong | ||
><br /> | ||
{{ msg.resource !== 'null' ? msg.resource : '' }} | ||
{{ msg.resultResource !== 'null' ? msg.resultResource : '' }} | ||
<br *ngIf="msg.resource !== 'null' || msg.resultResource !== 'null'" /> | ||
{{ msg.additionalInformations }} | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
<lib-modal | ||
[buttons]="[ | ||
{ | ||
label: 'Close', | ||
cssClass: 'button-filled' | ||
} | ||
]" | ||
[id]="modalIdLog" | ||
[isSmall]="false" | ||
title="{{ 'log' | translate }} ({{ showPluginLog.pluginType | renameWorkflow }})" | ||
> | ||
<app-load-animation [resources]="{ logs: true }" *ngIf="isFirstLoading"></app-load-animation> | ||
<p *ngIf="noLogMessage">{{ noLogMessage }}</p> | ||
<p *ngFor="let msg of logMessages"> | ||
{{ msg.resourceNum }} <strong>{{ msg.state }} {{ msg.info }}</strong | ||
><br /> | ||
{{ msg.resource !== 'null' ? msg.resource : '' }} | ||
{{ msg.resultResource !== 'null' ? msg.resultResource : '' }} | ||
<br *ngIf="msg.resource !== 'null' || msg.resultResource !== 'null'" /> | ||
{{ msg.additionalInformations }} | ||
</p> | ||
</lib-modal> |
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
Oops, something went wrong.