This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit a6d9aafa authored by Eduard Frankford's avatar Eduard Frankford
Browse files

refactoring code

parent ef5c7cb1
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';
@Component({
selector: 'jhi-datapolicy',
templateUrl: './datapolicy.component.html',
styleUrls: ['./datapolicy.component.scss'],
})
export class DatapolicyComponent implements OnInit {
ngOnInit(): void {
console.log('Hello World');
}
}
export class DatapolicyComponent {}
......@@ -15,8 +15,6 @@ describe('account', () => {
before(async () => {
await browser.get('/');
await browser.sleep(2000);
// browser.ignoreSynchronization = true;
navBarPage = new NavBarPage(true);
});
......@@ -26,9 +24,6 @@ describe('account', () => {
await signInPage.autoSignInUsing(username, 'foo');
const expect2 = 'login.messages.error.authentication';
const value2 = await element(by.css('.alert-danger')).getAttribute('jhiTranslate');
console.log(expect2);
console.log(value2);
expect(value2).to.eq(expect2);
});
......@@ -36,7 +31,6 @@ describe('account', () => {
await browser.get('/');
signInPage = await navBarPage.getSignInPage();
await signInPage.autoSignInUsing(username, password);
const expect2 = 'home.logged.message';
await browser.wait(ec.visibilityOf(element(by.id('home-logged-message'))));
const value2 = await element(by.id('home-logged-message')).getAttribute('jhiTranslate');
......@@ -72,7 +66,6 @@ describe('account', () => {
const alert = element(by.css('.alert-danger'));
const value2 = await alert.getAttribute('jhiTranslate');
expect(value2).to.eq(expect2);
// settingsPage = await navBarPage.getSettingsPage();
});
it('should be able to update password', async () => {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment