Skip to content
Snippets Groups Projects
Commit 17dfacff authored by paf's avatar paf
Browse files

Merge branch 'master' into group-monitor-post-test-fixes

parents b18a5fcb d9399245
No related branches found
No related tags found
No related merge requests found
Pipeline #18330 failed
......@@ -25,6 +25,7 @@ build:
stage: build
script:
- apk add make docker-compose
- make init-dev-mock-config
- make build
- docker save docker_testcenter-frontend-dev > frontend_image.tar
artifacts:
......@@ -35,6 +36,7 @@ test-unit:
stage: test
script:
- apk add make docker-compose
- make init-dev-mock-config
- docker load -i frontend_image.tar
- make run-detached
- make test-unit
......@@ -43,6 +45,7 @@ test-e2e:
stage: test
script:
- apk add make docker-compose
- make init-dev-mock-config
- docker load -i frontend_image.tar
- make run-detached
- make test-e2e
......
......@@ -19,6 +19,9 @@ test-unit:
test-e2e:
docker-compose -f docker/docker-compose.yml exec -T testcenter-frontend-dev ng e2e --webdriver-update=false --port 4202
init-dev-mock-config:
cp src/environments/environment.dev.mock.ts src/environments/environment.ts
init-dev-config:
cp src/environments/environment.dev.ts src/environments/environment.ts
......
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![GitLab CI Status](https://scm.cms.hu-berlin.de/iqb/verona-player-simple/badges/main/pipeline.svg)](https://scm.cms.hu-berlin.de/iqb/verona-player-simple)
![GitHub package.json version](https://img.shields.io/github/package-json/v/iqb-berlin/verona-player-simple)
[![GitLab CI Status](https://scm.cms.hu-berlin.de/iqb/testcenter-frontend/badges/main/pipeline.svg)](https://scm.cms.hu-berlin.de/iqb/testcenter-frontend)
![GitHub package.json version](https://img.shields.io/github/package-json/v/iqb-berlin/testcenter-frontend)
# Testcenter Frontend
......@@ -22,6 +22,11 @@ The repository for a complete setup of the application can be found [here](https
All the necessary commands for running the application and starting the tests
can be found in the Makefile on the root directory.
###### Prepare config
```
make init-dev-mock-config
```
###### Start and Stop the server
```
make run
......
import { browser, logging } from 'protractor';
import LoginPage from './app.po';
describe('Testcenter Frontend', () => {
......@@ -6,4 +8,12 @@ describe('Testcenter Frontend', () => {
await expect(LoginPage.getFirstCardTitle()).toEqual('Anmelden');
await expect(LoginPage.getSecondCardTitle()).toEqual('IQB-Testcenter');
});
afterEach(async () => {
// Assert that there are no errors emitted from the browser
const logs = await browser.manage().logs().get(logging.Type.BROWSER);
expect(logs).not.toContain(jasmine.objectContaining({
level: logging.Level.SEVERE
} as logging.Entry));
});
});
export const environment = {
production: false,
testcenterUrl: 'http://localhost:8000/',
appPublisher: 'IQB - Institut zur Qualitätsentwicklung im Bildungswesen',
apiVersionExpected: '9.1.0',
veronaApiVersionSupported: '2.1.0'
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment