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

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

testing

parent 3cb1efe9
Branches
5 merge requests!132Bringing July Release to production,!128Fixing #315 and #319,!126Continous Deployment with E2E Tests,!125Publish docker image,!119Publish docker image
......@@ -4,6 +4,7 @@ cache:
key: '$CI_COMMIT_REF_NAME'
paths:
- .maven/
- node_modules/
stages:
# - lint
# - build
......
......@@ -39,7 +39,7 @@
"predocker:others:up": "",
"docker:others:up": "npm run docker:elasticsearch:up",
"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",
"postinstall": "npm run e2e:update-webdriver",
"java:docker": "./mvnw -ntp verify -DskipTests -Pprod jib:dockerBuild",
......
......@@ -14,16 +14,22 @@ describe('account', () => {
before(async () => {
await browser.get('/');
await browser.sleep(2000);
// browser.ignoreSynchronization = true;
navBarPage = new NavBarPage(true);
});
it('should fail to login with bad password', async () => {
console.log('I am alive');
// browser.waitForAngularEnabled(false);
signInPage = await navBarPage.getSignInPage();
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);
});
......
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