Fixture method to update SSO connection

This commit is contained in:
Aswin V 2024-04-30 17:55:16 +05:30
parent b19677db83
commit 279563bf16
1 changed files with 11 additions and 1 deletions

View File

@ -100,10 +100,20 @@ export class SSOPage {
this.connections = [...this.connections, ssoName];
}
async deleteSSOConnection(name: string) {
async gotoEditView(name: string) {
await this.goto();
const editButton = this.page.getByText(name).locator('xpath=..').getByLabel('Edit');
await editButton.click();
}
async updateSSOConnection({ name, url }: { name: string; url: string }) {
await this.gotoEditView(name);
await this.redirectURLSInput.fill(url);
await this.saveConnection.click();
}
async deleteSSOConnection(name: string) {
await this.gotoEditView(name);
// click the delete and confirm deletion
await this.deleteButton.click();
await this.confirmButton.click();