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 a1f8c6a commit a7d2500
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class="btn btn-primary"
style="float: left; margin: 2px"
type="button"
(click)="generateKeyModal.show()"
(click)="unsetAcknowledgment();generateKeyModal.show()"
id="generateSShKey"
data-test-id="generateSShKey"
>
Expand All @@ -27,7 +27,7 @@
class="btn btn-primary"
style="float: left; margin: 2px"
type="button"
(click)="public_key = ''; pubKeyModal.show()"
(click)="public_key = '';unsetAcknowledgment(); pubKeyModal.show()"
id="setPublicKeyButton"
data-test-id="setPublicKeyButton"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ export class PublicKeyComponent extends AbstractBaseClass implements OnInit {
}
}

unsetAcknowledgment():void{
this.acknowledgement_given=false;
}

downloadPem(data: string): void {
const blob: Blob = new Blob([data], { type: 'pem' })
const url: string = window.URL.createObjectURL(blob)
Expand Down
1 change: 0 additions & 1 deletion tests/page_objects/profile.po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export class ProfilePage {
await this.page.fill(Util.by_data_test_id_str(this.ENTER_PUBLIC_KEY_AREA), this.TEST_PUBLIC_KEY);
console.log('Confirming effects of generating a new Key');

await this.page.locator(Util.by_data_test_id_str("public_key_acknowledgement_checkbox_replace")).click();
await this.page.locator(Util.by_data_test_id_str("public_key_acknowledgement_checkbox_replace")).click();

// await this.page.locator(Util.by_data_test_id_str(this.GENERATE_KEY_CHECKBOX)).click();
Expand Down

0 comments on commit a7d2500

Please sign in to comment.