Skip to content

Commit

Permalink
Reverted unwanted files to base
Browse files Browse the repository at this point in the history
Signed-off-by: sagar-1310 <[email protected]>
  • Loading branch information
sagaryadavs committed Nov 15, 2024
1 parent 0505031 commit 4e75acc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 28 deletions.
15 changes: 5 additions & 10 deletions playwright_test/Pages/apfAuth.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ApfAuthPage{
auth_load_lib_value:Locator;
auth_plugin_lib_value:Locator;
dataset_prefix_value:Locator;
apf_auth_tab: Locator;




Expand Down Expand Up @@ -85,16 +85,11 @@ class ApfAuthPage{
this.dataset_prefix_value = page.getByLabel('Dataset Prefix')
this.auth_load_lib_value = page.getByLabel('APF Authorized Load Library')
this.auth_plugin_lib_value = page.getByLabel('Zowe ZIS Plugins Load Library')

//this.select_SMPE = page.getByLabel('//button[contains(text(),"SMP/E")]')
this.select_SMPE = page.locator('span:has-text("SMP/E")');
this.apf_auth_tab = page.locator("//span[text()='APF Auth']")
}

async clickApfAuthTab(){
await this.apf_auth_tab.click({timeout: 9000})
}

}
async returnTitleOfApfAuthPage(){
const ApfAuthTitle = await this.APFAUTH_TITLE.textContent();
return ApfAuthTitle;
Expand All @@ -117,7 +112,7 @@ class ApfAuthPage{
console.log('SMP/E span is visible.');
await this.select_SMPE.click({timeout: 9000})
}


async fillApfDetails(datasetPrefix:string, authLoadLib:string,authpluginLib:string){
await this.page.waitForTimeout(500)
Expand All @@ -126,7 +121,7 @@ class ApfAuthPage{
await this.authLoadLib.fill(authLoadLib);
await this.authpluginLib.fill(authpluginLib);
await this.page.waitForTimeout(5000)

Check failure on line 123 in playwright_test/Pages/apfAuth.page.ts

View workflow job for this annotation

GitHub Actions / lint

Mixed spaces and tabs

}
async initializeApfauth(){
await this.initApfauth.click()
Expand Down
32 changes: 14 additions & 18 deletions playwright_test/Pages/networking.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class NetworkingPage{
this.APFAUTH_TITLE = page.locator('//div[text()="APF Authorize Load Libraries"]');
this.continue_ReviewSelector = page.locator('//button[contains(text(), "Continue to APF Auth Setup")]');
this.installationTitle = page.locator('//div[text()="Installation"]');
this.contiuneToApfAuth = page.locator('//button[text()="Continue to APF Auth Setup"]');

}

async isCheckBoxChecked(component: string,label:string): Promise<boolean> {
Expand All @@ -109,15 +109,15 @@ class NetworkingPage{
try {
if (await checkboxLocator.isChecked()) {
console.log("Checkbox is already checked.");
return true;
return true;
} else {
await checkboxLocator.check();
await checkboxLocator.check();
console.log("Checkbox has been checked.");
return true;
return true;
}
} catch (error) {
console.error("Failed to toggle the checkbox:", error);
return false;
return false;
}
}
async movetoNetworkingPage(){
Expand Down Expand Up @@ -176,7 +176,7 @@ class NetworkingPage{
return false;
}
}



async isCheckboxCheckedAndBlue(xpath: string): Promise<boolean>{
Expand All @@ -191,38 +191,37 @@ class NetworkingPage{
} catch (error){
console.log('Checkbox not found');
return false;

}
}

async isMetricsServiceDebugChecked(): Promise<boolean> {
return await this.isCheckboxCheckedAndBlue(this.metricService_debug_checkbox);
}

async clickMetricsServiceDebug(): Promise<void> {
await this.click_checkBox(this.metricService_debug_checkbox);
}

async isExplorerUssDebugChecked(): Promise<boolean> {
return await this.isCheckboxCheckedAndBlue(this.explorerUSS_debug_checkbox);
}

async isAppServerDebugChecked(): Promise<boolean> {
return await this.isCheckboxCheckedAndBlue(this.app_server_debug);
}

async clickExplorerUssDebug(): Promise<void> {
await this.click_checkBox(this.explorerUSS_debug_checkbox);
}

async clickAppServerDebug(): Promise<void> {
await this.click_checkBox(this.app_server_debug);
}

async delete_DomainNameField(){
await this.deleteDomainName.click();
}

async add_DomainNameField(){
await this.addDomainField.click()
}
Expand All @@ -241,9 +240,6 @@ class NetworkingPage{
async is_skipNetworkingButtonEnable(){
return await this.skip_button.isEnabled({ timeout: 5000 });
}
async clickContinueToApfAuth(){
this.contiuneToApfAuth.click({ timeout: 2000 })
}

async click_skipNetworking(){
const isEnabled = await this.is_skipNetworkingButtonEnable();
Expand Down Expand Up @@ -292,9 +288,9 @@ class NetworkingPage{
allText += newText;
await this.page.evaluate(() => {
const editor = document.querySelector('.monaco-scrollable-element.editor-scrollable.vs');
editor.scrollTop += 100;
editor.scrollTop += 100;
});
await this.page.waitForTimeout(1000);
await this.page.waitForTimeout(1000);
const currentScrollHeight = await this.page.evaluate(() => {
const editor = document.querySelector('.monaco-scrollable-element.editor-scrollable.vs');
return editor.scrollHeight;
Expand Down

0 comments on commit 4e75acc

Please sign in to comment.