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

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

testing

parent 48175144
Branches
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
...@@ -4,6 +4,7 @@ cache: ...@@ -4,6 +4,7 @@ cache:
key: '$CI_COMMIT_REF_NAME' key: '$CI_COMMIT_REF_NAME'
paths: paths:
- .maven/ - .maven/
- node_modules/
stages: stages:
# - lint # - lint
# - build # - build
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
"predocker:others:up": "", "predocker:others:up": "",
"docker:others:up": "npm run docker:elasticsearch:up", "docker:others:up": "npm run docker:elasticsearch:up",
"e2e": "export JHI_E2E_HEADLESS=true; protractor src/test/javascript/protractor.conf.js --disableChecks", "e2e": "export JHI_E2E_HEADLESS=true; protractor src/test/javascript/protractor.conf.js --disableChecks",
"e2e:ci": "protractor --baseUrl='https://dev-exchange.codeability-austria.uibk.ac.at/' src/test/javascript/protractor.conf.js --disableChecks", "e2e:ci": "export E2E_PASSWORD=aUCDc2gJ6Qq3cAgf8jUfwV69gnd5Sq ; protractor --baseUrl='https://dev-exchange.codeability-austria.uibk.ac.at/' src/test/javascript/protractor.conf.js --disableChecks",
"e2e:update-webdriver": "webdriver-manager update --gecko false", "e2e:update-webdriver": "webdriver-manager update --gecko false",
"postinstall": "npm run e2e:update-webdriver", "postinstall": "npm run e2e:update-webdriver",
"java:docker": "./mvnw -ntp verify -DskipTests -Pprod jib:dockerBuild", "java:docker": "./mvnw -ntp verify -DskipTests -Pprod jib:dockerBuild",
......
...@@ -14,16 +14,22 @@ describe('account', () => { ...@@ -14,16 +14,22 @@ describe('account', () => {
before(async () => { before(async () => {
await browser.get('/'); await browser.get('/');
await browser.sleep(2000);
// browser.ignoreSynchronization = true;
navBarPage = new NavBarPage(true); navBarPage = new NavBarPage(true);
}); });
it('should fail to login with bad password', async () => { it('should fail to login with bad password', async () => {
console.log('I am alive'); // browser.waitForAngularEnabled(false);
signInPage = await navBarPage.getSignInPage(); signInPage = await navBarPage.getSignInPage();
await signInPage.autoSignInUsing(username, 'foo'); await signInPage.autoSignInUsing(username, 'foo');
const expect2 = 'login.messages.error.authentication'; const expect2 = 'login.messages.error.authentication';
const value2 = await element(by.css('.alert-danger')).getAttribute('jhiTranslate'); const value2 = await element(by.css('.alert-danger')).getAttribute('jhiTranslate');
console.log(expect2);
console.log(value2);
expect(value2).to.eq(expect2); expect(value2).to.eq(expect2);
}); });
......
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