Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Nov 26, 2024
1 parent d82cf1b commit 88c18f1
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 20 deletions.
27 changes: 12 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"@angular/compiler-cli": "18.2.8",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.9.0",
"@playwright/test": "1.47.2",
"@playwright/test": "^1.49.0",
"@types/jasmine": "5.1.4",
"@types/node": "20.16.14",
"@typescript-eslint/eslint-plugin": "^8.0.0",
Expand Down Expand Up @@ -134,4 +134,4 @@
"*.js": "eslint --cache --fix",
"*.{js,css,md}": "prettier --write"
}
}
}
6 changes: 5 additions & 1 deletion tests/page_objects/application_overview.po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@ export class ApplicationOverviewPage {
}

async goto() {
console.log('Goto Application overview Page');
console.log(`Goto Application overview Page - ${this.baseURL}/#/applications`);

await this.page.goto(`${this.baseURL}/#/applications`);
await this.page.waitForURL('**/applications');


console.log(this.page.url());
expect(this.page.url()).toContain('/applications');
await this.page.waitForSelector(Util.by_data_test_id_str(this.SITE_LOADER), { state: 'hidden' });
Expand Down
1 change: 1 addition & 0 deletions tests/page_objects/facility_application_overview.po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export class FacilityApplicationOverviewPage {

async goto() {
console.log('Goto Facility Application overview');

await this.page.goto(`${this.baseURL}/#/facility-manager/facilityApplications`);
console.log(this.page.url());

Expand Down
1 change: 1 addition & 0 deletions tests/page_objects/formular.po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export class FormularPage {

async goto() {
console.log('Goto Type-Overview Page');

await this.page.goto(`${this.baseURL}/#/applications/type-overview`);
console.log(this.page.url());

Expand Down
7 changes: 5 additions & 2 deletions tests/page_objects/profile.po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ export class ProfilePage {
async generateNewKeyPair(): Promise<any> {
await this.goto();
console.log('Opening the Generate Key modal');

await this.page.locator(Util.by_data_test_id_str(this.OPEN_GENERATE_KEY_BUTTON)).click();

console.log('Confirming effects of generating a new Key');
await this.page.locator(Util.by_data_test_id_str(this.GENERATE_KEY_CHECKBOX)).click();
await this.page.locator(Util.by_data_test_id_str(this.PUBLIC_KEY_ACKNOWLEDGE_CHECKBOX)).click();

console.log('Clicking on Set-Button');

Expand All @@ -62,8 +64,9 @@ export class ProfilePage {
await this.page.locator(Util.by_data_test_id_str(this.OPEN_SET_KEY_BUTTON)).click();
console.log('Copying public key into textfield.');
await this.page.fill(Util.by_data_test_id_str(this.ENTER_PUBLIC_KEY_AREA), this.TEST_PUBLIC_KEY);
await this.page.locator(Util.by_data_test_id_str(this.PUBLIC_KEY_ACKNOWLEDGE_CHECKBOX)).click()
console.log('Confirming effects of generating a new Key');

await this.page.locator(Util.by_data_test_id_str(this.PUBLIC_KEY_ACKNOWLEDGE_CHECKBOX)).last().click()
// await this.page.locator(Util.by_data_test_id_str(this.GENERATE_KEY_CHECKBOX)).click();
console.log('Clicking on Set-Button');
await Promise.all([
Expand Down
1 change: 1 addition & 0 deletions tests/page_objects/vo_overview.po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export class VoOverviewPage {

async goto() {
console.log('Goto vo manager overview Page')

await this.page.goto(this.baseURL + this.VO_OVERVIEW_URL)
console.log(this.page.url())

Expand Down

0 comments on commit 88c18f1

Please sign in to comment.