Skip to content

Commit

Permalink
few fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Himani1519 <[email protected]>
  • Loading branch information
Himani1519 committed Aug 1, 2024
1 parent 8191b56 commit 79a31e8
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 27 deletions.
4 changes: 0 additions & 4 deletions playwright_test/Pages/connection.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ class ConnectionPage{
return await this.greenCheckIconSelector.isHidden();
}

async click_resumeProgress(){
await this.page.waitForTimeout(1000);
await this.resumeProgress.click()
}
}

export default ConnectionPage;
6 changes: 3 additions & 3 deletions playwright_test/Pages/installationType.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,14 @@ class InstallationTypePage{
this.selectDownloadZowePax()
this.clickLicenseAgreement()
this.clickAgreeLicense()
}
}

async uploadZowePaxAndNavigateToInstallationPage(uploadPaxPath: any){
this.selectUploadZowePax()
await this.page.waitForTimeout(2000)
await this.uploadPaxButton.setInputFiles(uploadPaxPath)
await this.page.waitForTimeout(2000)
}
}

async smpeZowePaxAndNavigateToInstallationPage(runtimeDir: any){
this.selectSmpe()
Expand All @@ -167,4 +167,4 @@ class InstallationTypePage{
this.click_InitializationStage.click({ timeout: 15000 })
}
}
export default InstallationTypePage;
export default InstallationTypePage;
48 changes: 31 additions & 17 deletions playwright_test/Pages/stcs.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,37 @@ let electronApp: ElectronApplication

class StcsPage{
page: Page;
zis: Locator;
zowe: Locator;
aux: Locator;
dataset_proclib: Locator;
readYaml: Locator;
previous_step_button: Locator;
continue_ReviewSelector: Locator;
editor_title_element: Locator;
skip_button:Locator;
view_yaml:Locator;
view_submit_job:Locator;
view_job_output:Locator;
save_and_close:Locator;
previous_step:Locator;
close_button:Locator;
STCS_TITLE: Locator;
continueToComponentInstallation: Locator;
click_stcs = Locator;
Security_title = Locator;
zis = Locator;
zowe = Locator;
aux = Locator;
dataset_proclib = Locator;
readYaml = Locator;
initSTC = Locator;
previous_step_button = Locator;
skip_button = Locator;
editor_title_element = Locator;
STCS_TITLE = Locator;
continueToComponentInstallation = Locator;
view_yaml = Locator;
viewAndSubmitJob = Locator;
view_job_output = Locator;
save_and_close = Locator;
previous_step = Locator;
skip_button = Locator;
close_button = Locator;
certificateTab_title = Locator;
continue_ReviewSelector = Locator;
errorMsg = Locator;
continue_CertificateSelector = Locator;
get_zoweValue = Locator;
get_zisValue = Locator;
get_auxValue = Locator;
get_datasetProclib = Locator;
writeConfig_greenCheckXpath = Locator;
uploadYaml_greenCheckXpath = Locator;
init_stcs_greenCheckXpath = Locator;



Expand Down
4 changes: 1 addition & 3 deletions playwright_test/Tests/Stcs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const JCL_LIB = process.env.JCL_LIB;
const LOAD_LIB = process.env.LOAD_LIB;
const AUTH_LOAD_LIB = process.env.AUTH_LOAD_LIB;
const AUTH_PLUGIN_LIB = process.env.AUTH_PLUGIN_LIB;
const UPLOAD_PAX_PATH = process.env.ZOWE_ROOT_DIR
const SECURITY_ADMIN = process.env.SECURITY_ADMIN;
const SECURITY_STC = process.env.SECURITY_STC;
const SECURITY_SYSPROG = process.env.SECURITY_SYSPROG;
Expand Down Expand Up @@ -88,7 +87,6 @@ test.describe('StcsTab', () => {
await page.waitForTimeout(30000);
installationTypePage.clickSkipUnpaxButton()
await page.waitForTimeout(2000);
// installationTypePage.clickContinueToInstallation()
installationPage.fillInstallationPage(DATASET_PREFIX, PROC_LIB, PARM_LIB, ZIS, JCL_LIB,LOAD_LIB,AUTH_LOAD_LIB,AUTH_PLUGIN_LIB)
await page.waitForTimeout(10000)
installationPage.clickInstallMvsDatasets()
Expand Down Expand Up @@ -190,7 +188,7 @@ test.describe('StcsTab', () => {
test('Test Resume Progress', async ({ page }) => {
await page.waitForTimeout(8000);
stcsPage.click_saveAndClose()
connectionPage.click_resumeProgress()
titlePage.clickOnResumeProgress()
connectionPage.fillpassword(SSH_PASSWD)
await page.waitForTimeout(5000);
connectionPage.SubmitValidateCredential()
Expand Down

0 comments on commit 79a31e8

Please sign in to comment.