Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate Check ssh address of private repo with SSH key with no OAuth or PAT test-case #23299

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SkorikSergey
Copy link
Contributor

@SkorikSergey SkorikSergey commented Jan 1, 2025

What does this PR do?

https://issues.redhat.com/browse/CRW-7904

Screenshot/screencast of this PR

` The SshFactoryWithoutPAT userstory
Create workspace from factory:https://devspaces.apps.ocp417-sskoryk.crw-qe.com/dashboard/#/[email protected]:crw-qe/private-repo-check.git
▼ LoginTests.loginIntoChe
‣ BrowserTabsUtil.getCurrentUrl
‣ DriverHelper.getDriver
▼ BrowserTabsUtil.navigateTo - https://devspaces.apps.ocp417-sskoryk.crw-qe.com
‣ DriverHelper.navigateToUrl
‣ DriverHelper.getDriver
▼ Dashboard.waitPage
‣ DriverHelper.waitVisibility - By(xpath, //div[@id="page-sidebar"]//a[contains(text(), "Workspaces (")])
‣ DriverHelper.waitVisibility - polling timed out attempt #1, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #2, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #3, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #4, retrying with 1000ms timeout
[ERROR] DriverHelper.waitVisibility - failed with exception, out of attempts - TimeoutError: Waiting for element to be located By(xpath, //div[@id="page-sidebar"]//a[contains(text(), "Workspaces (")])
Wait timed out after 1074ms
▼ LoginTests.loginIntoChe - try to login into application
▼ RegularUserOcpCheLoginPage.login
‣ DriverHelper.waitAndClick - By(xpath, //div[@Class="panel-login"]/div[contains(@Class, "panel-content")]/form/button)
‣ DriverHelper.waitVisibility - By(xpath, //div[@Class="panel-login"]/div[contains(@Class, "panel-content")]/form/button)
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ OcpLoginPage.isIdentityProviderLinkVisible
‣ DriverHelper.waitVisibilityBoolean - By(xpath, //a[text()="htpasswd"])
‣ DriverHelper.isVisible - By(xpath, //a[text()="htpasswd"])
▼ OcpLoginPage.waitAndClickOnLoginProviderTitle
‣ DriverHelper.waitAndClick - By(xpath, //a[text()="htpasswd"])
‣ DriverHelper.waitVisibility - By(xpath, //a[text()="htpasswd"])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ OcpLoginPage.waitOpenShiftLoginWelcomePage
‣ DriverHelper.waitVisibility - By(xpath, //*[contains(text(), "Welcome")])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ OcpLoginPage.enterUserNameOpenShift - "admin"
‣ DriverHelper.enterValue - By(css selector, *[id="inputUsername"]) text: admin
‣ DriverHelper.waitVisibility - By(css selector, *[id="inputUsername"])
‣ DriverHelper.waitVisibility - element is located and is visible.
‣ DriverHelper.clear - By(css selector, *[id="inputUsername"])
‣ DriverHelper.waitVisibility - By(css selector, *[id="inputUsername"])
‣ DriverHelper.waitVisibility - element is located and is visible.
‣ DriverHelper.waitAttributeValue - By(css selector, *[id="inputUsername"])
‣ DriverHelper.waitAndGetElementAttribute - By(css selector, *[id="inputUsername"]) attribute: 'value'
‣ DriverHelper.waitVisibility - By(css selector, *[id="inputUsername"])
‣ DriverHelper.waitVisibility - element is located and is visible.
‣ DriverHelper.type - By(css selector, *[id="inputUsername"]) text: admin
‣ DriverHelper.waitVisibility - By(css selector, *[id="inputUsername"])
‣ DriverHelper.waitVisibility - element is located and is visible.
‣ DriverHelper.waitAttributeValue - By(css selector, *[id="inputUsername"])
‣ DriverHelper.waitAndGetElementAttribute - By(css selector, *[id="inputUsername"]) attribute: 'value'
‣ DriverHelper.waitVisibility - By(css selector, *[id="inputUsername"])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ OcpLoginPage.enterPasswordOpenShift
‣ DriverHelper.enterValue - By(css selector, *[id="inputPassword"]) text: ***
‣ DriverHelper.waitVisibility - By(css selector, *[id="inputPassword"])
‣ DriverHelper.waitVisibility - element is located and is visible.
‣ DriverHelper.clear - By(css selector, *[id="inputPassword"])
‣ DriverHelper.waitVisibility - By(css selector, *[id="inputPassword"])
‣ DriverHelper.waitVisibility - element is located and is visible.
‣ DriverHelper.waitAttributeValue - By(css selector, *[id="inputPassword"])
‣ DriverHelper.waitAndGetElementAttribute - By(css selector, *[id="inputPassword"]) attribute: 'value'
‣ DriverHelper.waitVisibility - By(css selector, *[id="inputPassword"])
‣ DriverHelper.waitVisibility - element is located and is visible.
‣ DriverHelper.type - By(css selector, *[id="inputPassword"]) text: ***
‣ DriverHelper.waitVisibility - By(css selector, [id="inputPassword"])
‣ DriverHelper.waitVisibility - element is located and is visible.
‣ DriverHelper.waitAttributeValue - By(css selector, [id="inputPassword"])
‣ DriverHelper.waitAndGetElementAttribute - By(css selector, [id="inputPassword"]) attribute: 'value'
‣ DriverHelper.waitVisibility - By(css selector, [id="inputPassword"])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ OcpLoginPage.clickOnLoginButton
‣ DriverHelper.waitAndClick - By(css selector, button[type=submit])
‣ DriverHelper.waitVisibility - By(css selector, button[type=submit])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ OcpLoginPage.waitDisappearanceOpenShiftLoginWelcomePage
‣ DriverHelper.waitDisappearance - By(xpath, //
[contains(text(), "Welcome")])
‣ DriverHelper.waitDisappearanceBoolean - By(xpath, //
[contains(text(), "Welcome")])
‣ DriverHelper.isVisible - By(xpath, //
[contains(text(), "Welcome")])
▼ OcpLoginPage.isAuthorizeOpenShiftIdentityProviderPageVisible
‣ DriverHelper.isVisible - By(xpath, //h1[text()="Authorize Access"])
‣ BrowserTabsUtil.maximize
▼ BrowserTabsUtil.maximize - TS_SELENIUM_LAUNCH_FULLSCREEN is set to true, maximizing window.
‣ DriverHelper.getDriver
▼ Dashboard.waitStartingPageLoaderDisappearance
‣ DriverHelper.waitDisappearance - By(css selector, .main-page-loader)
‣ DriverHelper.waitDisappearanceBoolean - By(css selector, .main-page-loader)
‣ DriverHelper.isVisible - By(css selector, .main-page-loader)
‣ DriverHelper.wait - (1000 milliseconds)
‣ DriverHelper.isVisible - By(css selector, .main-page-loader)
‣ DriverHelper.wait - (1000 milliseconds)
‣ DriverHelper.isVisible - By(css selector, .main-page-loader)
‣ DriverHelper.wait - (1000 milliseconds)
‣ DriverHelper.isVisible - By(css selector, .main-page-loader)
‣ DriverHelper.wait - (1000 milliseconds)
‣ DriverHelper.isVisible - By(css selector, .main-page-loader)
‣ DriverHelper.wait - (1000 milliseconds)
‣ DriverHelper.isVisible - By(css selector, .main-page-loader)
‣ DriverHelper.wait - (1000 milliseconds)
‣ DriverHelper.isVisible - By(css selector, .main-page-loader)
‣ DriverHelper.wait - (1000 milliseconds)
‣ DriverHelper.isVisible - By(css selector, .main-page-loader)
‣ DriverHelper.wait - (1000 milliseconds)
‣ DriverHelper.isVisible - By(css selector, .main-page-loader)
‣ DriverHelper.wait - (1000 milliseconds)
‣ DriverHelper.isVisible - By(css selector, .main-page-loader)
‣ DriverHelper.wait - (1000 milliseconds)
▼ BrowserTabsUtil.navigateTo - https://devspaces.apps.ocp417-sskoryk.crw-qe.com/dashboard/#/[email protected]:crw-qe/private-repo-check.git
‣ DriverHelper.navigateToUrl
‣ DriverHelper.getDriver
▼ Dashboard.waitLoader
‣ DriverHelper.waitAllPresence - By(xpath, //
[@data-testid="step-title"])
‣ DriverHelper.waitAllPresence - polling timed out attempt #1, retrying with 1000ms timeout
▼ Dashboard.clickContinueWithDefaultDevfileButton
‣ DriverHelper.waitAndClick - By(xpath, //button[text()="Continue with default devfile"])
‣ DriverHelper.waitVisibility - By(xpath, //button[text()="Continue with default devfile"])
[ERROR] DriverHelper.waitVisibility - failed with exception, out of attempts - TimeoutError: Waiting for element to be located By(xpath, //button[text()="Continue with default devfile"])
Wait timed out after 1115ms
‣ DriverHelper.waitAndClick - polling timed out attempt #1, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - By(xpath, //button[text()="Continue with default devfile"])
[ERROR] DriverHelper.waitVisibility - failed with exception, out of attempts - TimeoutError: Waiting for element to be located By(xpath, //button[text()="Continue with default devfile"])
Wait timed out after 1095ms
‣ DriverHelper.waitAndClick - polling timed out attempt #2, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - By(xpath, //button[text()="Continue with default devfile"])
[ERROR] DriverHelper.waitVisibility - failed with exception, out of attempts - TimeoutError: Waiting for element to be located By(xpath, //button[text()="Continue with default devfile"])
Wait timed out after 1114ms
‣ DriverHelper.waitAndClick - polling timed out attempt #3, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - By(xpath, //button[text()="Continue with default devfile"])
‣ DriverHelper.waitVisibility - element is located and is visible.
‣ DriverHelper.getDriver
‣ WorkspaceHandlingTests.obtainWorkspaceNameFromStartingPage - failed to obtain name from workspace start page, element not visible yet. Retrying.
‣ DriverHelper.wait - (1000 milliseconds)
‣ DriverHelper.getDriver
‣ WorkspaceHandlingTests.obtainWorkspaceNameFromStartingPage - failed to obtain name from workspace start page, element not visible yet. Retrying.
‣ DriverHelper.wait - (1000 milliseconds)
‣ DriverHelper.getDriver
‣ WorkspaceHandlingTests.obtainWorkspaceNameFromStartingPage - failed to obtain name from workspace start page, element not visible yet. Retrying.
‣ DriverHelper.wait - (1000 milliseconds)
‣ DriverHelper.getDriver
‣ WorkspaceHandlingTests.obtainWorkspaceNameFromStartingPage - failed to obtain name from workspace start page, element not visible yet. Retrying.
‣ DriverHelper.wait - (1000 milliseconds)
‣ DriverHelper.getDriver
‣ WorkspaceHandlingTests.obtainWorkspaceNameFromStartingPage - obtained starting workspace getText():Starting workspace private-repo-check-vut0
‣ WorkspaceHandlingTests.obtainWorkspaceNameFromStartingPage - trimmed workspace name from getText():private-repo-check-vut0
• WorkspaceHandlingTests.obtainWorkspaceNameFromStartingPage - obtained workspace name from workspace loader page: private-repo-check-vut0
▼ registerRunningWorkspace - with workspaceName:private-repo-check-vut0
▼ ProjectAndFileTests.waitWorkspaceReadinessForCheCodeEditor - waiting for editor.
‣ DriverHelper.waitVisibility - By(css selector, .monaco-workbench)
‣ DriverHelper.waitVisibility - polling timed out attempt #1, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #2, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #3, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #4, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #5, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #6, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #7, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #8, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #9, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #10, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #11, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #12, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #13, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #14, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #15, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #16, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #17, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #18, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #19, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #20, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #21, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #22, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #23, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #24, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #25, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #26, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #27, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #28, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #29, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #30, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #31, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #32, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #33, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #34, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #35, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #36, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #37, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #38, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #39, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #40, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #41, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #42, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #43, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #44, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #45, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #46, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #47, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #48, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #49, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #50, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ ProjectAndFileTests.waitWorkspaceReadinessForCheCodeEditor - editor was opened in 76757 seconds.
✔ Check creating workspace using default devfile (86847ms)
▼ Function.getProjectNameFromGitUrl - https://devspaces.apps.ocp417-sskoryk.crw-qe.com/dashboard/#/[email protected]:crw-qe/private-repo-check.git
▼ Function.getProjectNameFromGitUrl - private-repo-check
▼ ProjectAndFileTests.getProjectViewSession
‣ DriverHelper.waitVisibility - By(css selector, .monaco-list-row)
‣ DriverHelper.waitVisibility - polling timed out attempt #1, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ ProjectAndFileTests.getProjectTreeItem - private-repo-check
‣ DriverHelper.waitVisibility - By(xpath, .//div[@ROLE='treeitem' and @aria-level='2'])
‣ DriverHelper.waitVisibility - element is located and is visible.
✔ Check a project folder has been created
▼ ProjectAndFileTests.getProjectTreeItem - devfile.yaml
‣ DriverHelper.waitVisibility - By(xpath, .//div[@ROLE='treeitem' and @aria-level='2'])
‣ DriverHelper.waitVisibility - element is located and is visible.
✔ Check the project files was imported
▼ Dashboard.openDashboard
‣ DriverHelper.navigateToUrl
‣ DriverHelper.getDriver
▼ Dashboard.waitPage
‣ DriverHelper.waitVisibility - By(xpath, //div[@id="page-sidebar"]//a[contains(text(), "Workspaces (")])
‣ DriverHelper.waitVisibility - polling timed out attempt #1, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #2, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - element is located and is visible.
‣ DriverHelper.waitVisibility - By(xpath, //div[@id="page-sidebar"]//a[text()="Create Workspace"])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Dashboard.stopWorkspaceByUI - "private-repo-check-vut0"
▼ Dashboard.clickWorkspacesButton
‣ DriverHelper.waitAndClick - By(xpath, //div[@id="page-sidebar"]//a[contains(text(), "Workspaces (")])
‣ DriverHelper.waitVisibility - By(xpath, //div[@id="page-sidebar"]//a[contains(text(), "Workspaces (")])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Workspaces.waitPage
‣ DriverHelper.waitVisibility - By(xpath, //button[text()="Add Workspace"])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Workspaces.waitWorkspaceListItem - "private-repo-check-vut0"
‣ DriverHelper.waitVisibility - By(xpath, //tr[td//a[text()='private-repo-check-vut0']])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Workspaces.waitWorkspaceWithRunningStatus - "private-repo-check-vut0"
‣ DriverHelper.waitVisibility - By(xpath, //tr[td//a[text()='private-repo-check-vut0']]//span[@data-testid='workspace-status-indicator' and @aria-label='Workspace status is Running'])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Workspaces.stopWorkspaceByActionsButton
▼ Workspaces.waitWorkspaceListItem - "private-repo-check-vut0"
‣ DriverHelper.waitVisibility - By(xpath, //tr[td//a[text()='private-repo-check-vut0']])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Workspaces.openActionsPopup - for the 'private-repo-check-vut0' list item
▼ Workspaces.clickActionsButton - of the 'private-repo-check-vut0' list item
‣ DriverHelper.waitAndClick - By(xpath, //tr[td//a[text()='private-repo-check-vut0']]/td/div/button[@aria-label='Actions'])
‣ DriverHelper.waitVisibility - By(xpath, //tr[td//a[text()='private-repo-check-vut0']]/td/div/button[@aria-label='Actions'])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Workspaces.waitActionsPopup - of the 'private-repo-check-vut0' list item
‣ DriverHelper.waitVisibility - By(xpath, //tr[td//a[text()='private-repo-check-vut0']]//button[@aria-label='Actions' and @aria-expanded='true'])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Workspaces.clickActionsStopWorkspaceButton - for the 'private-repo-check-vut0' list item
‣ DriverHelper.waitAndClick - By(xpath, //tr[td//a[text()='private-repo-check-vut0']]//button[text()='Stop Workspace'])
‣ DriverHelper.waitVisibility - By(xpath, //tr[td//a[text()='private-repo-check-vut0']]//button[text()='Stop Workspace'])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Workspaces.waitWorkspaceWithStoppedStatus - "private-repo-check-vut0"
‣ DriverHelper.waitVisibility - By(xpath, //tr[td//a[text()='private-repo-check-vut0']]//span[@data-testid='workspace-status-indicator' and @aria-label='Workspace status is Stopped'])
‣ DriverHelper.waitVisibility - element is located and is visible.
‣ BrowserTabsUtil.closeAllTabsExceptCurrent
▼ BrowserTabsUtil.getAllWindowHandles
‣ DriverHelper.getDriver
▼ BrowserTabsUtil.getCurrentWindowHandle
‣ DriverHelper.getDriver
▼ BrowserTabsUtil.switchToWindow
‣ DriverHelper.getDriver
✔ Stop the workspace by UI
▼ Dashboard.openDashboard
‣ DriverHelper.navigateToUrl
‣ DriverHelper.getDriver
▼ Dashboard.waitPage
‣ DriverHelper.waitVisibility - By(xpath, //div[@id="page-sidebar"]//a[contains(text(), "Workspaces (")])
‣ DriverHelper.waitVisibility - polling timed out attempt #1, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #2, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - polling timed out attempt #3, retrying with 1000ms timeout
‣ DriverHelper.waitVisibility - element is located and is visible.
‣ DriverHelper.waitVisibility - By(xpath, //div[@id="page-sidebar"]//a[text()="Create Workspace"])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Dashboard.deleteStoppedWorkspaceByUI - "private-repo-check-vut0"
▼ Dashboard.clickWorkspacesButton
‣ DriverHelper.waitAndClick - By(xpath, //div[@id="page-sidebar"]//a[contains(text(), "Workspaces (")])
‣ DriverHelper.waitVisibility - By(xpath, //div[@id="page-sidebar"]//a[contains(text(), "Workspaces (")])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Workspaces.waitPage
‣ DriverHelper.waitVisibility - By(xpath, //button[text()="Add Workspace"])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Workspaces.waitWorkspaceListItem - "private-repo-check-vut0"
‣ DriverHelper.waitVisibility - By(xpath, //tr[td//a[text()='private-repo-check-vut0']])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Workspaces.deleteWorkspaceByActionsButton
▼ Workspaces.waitWorkspaceListItem - "private-repo-check-vut0"
‣ DriverHelper.waitVisibility - By(xpath, //tr[td//a[text()='private-repo-check-vut0']])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Workspaces.openActionsPopup - for the 'private-repo-check-vut0' list item
▼ Workspaces.clickActionsButton - of the 'private-repo-check-vut0' list item
‣ DriverHelper.waitAndClick - By(xpath, //tr[td//a[text()='private-repo-check-vut0']]/td/div/button[@aria-label='Actions'])
‣ DriverHelper.waitVisibility - By(xpath, //tr[td//a[text()='private-repo-check-vut0']]/td/div/button[@aria-label='Actions'])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Workspaces.waitActionsPopup - of the 'private-repo-check-vut0' list item
‣ DriverHelper.waitVisibility - By(xpath, //tr[td//a[text()='private-repo-check-vut0']]//button[@aria-label='Actions' and @aria-expanded='true'])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Workspaces.clickActionsDeleteButton - for the 'private-repo-check-vut0' list item
‣ DriverHelper.waitAndClick - By(xpath, //tr[td//a[text()='private-repo-check-vut0']]//button[text()='Delete Workspace'])
‣ DriverHelper.waitVisibility - By(xpath, //tr[td//a[text()='private-repo-check-vut0']]//button[text()='Delete Workspace'])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Workspaces.waitDeleteWorkspaceConfirmationWindow
‣ DriverHelper.waitVisibility - By(xpath, //div[@aria-label="Delete workspaces confirmation window"])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Workspaces.clickToDeleteConfirmationCheckbox
‣ DriverHelper.waitAndClick - By(xpath, //input[@data-testid="confirmation-checkbox"])
‣ DriverHelper.waitVisibility - By(xpath, //input[@data-testid="confirmation-checkbox"])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Workspaces.waitAndClickEnabledConfirmationWindowDeleteButton
‣ DriverHelper.waitAndClick - By(xpath, //button[@data-testid="delete-workspace-button" and not(@disabled)])
‣ DriverHelper.waitVisibility - By(xpath, //button[@data-testid="delete-workspace-button" and not(@disabled)])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Workspaces.waitPage
‣ DriverHelper.waitVisibility - By(xpath, //button[text()="Add Workspace"])
‣ DriverHelper.waitVisibility - element is located and is visible.
▼ Workspaces.waitWorkspaceListItemAbsence - "private-repo-check-vut0"
‣ DriverHelper.waitDisappearance - By(xpath, //tr[td//a[text()='private-repo-check-vut0']])
‣ DriverHelper.waitDisappearanceBoolean - By(xpath, //tr[td//a[text()='private-repo-check-vut0']])
‣ DriverHelper.isVisible - By(xpath, //tr[td//a[text()='private-repo-check-vut0']])
✔ Delete the workspace by UI
▼ at /home/sskoryk/codenvy-projects/che/tests/e2e/specs/MochaHooks.ts:39:12 - delete workspace name

5 passing (2m)`

What issues does this PR fix or reference?

How to test this PR?

PR Checklist

As the author of this Pull Request I made sure that:

@SkorikSergey SkorikSergey added status/in-progress This issue has been taken by an engineer and is under active development. area/qe labels Jan 1, 2025
@SkorikSergey SkorikSergey self-assigned this Jan 1, 2025
@SkorikSergey SkorikSergey marked this pull request as ready for review January 1, 2025 13:28
@SkorikSergey SkorikSergey requested a review from artaleks9 January 1, 2025 13:29
Copy link
Contributor

@dmytro-ndp dmytro-ndp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test should not expect any additional warnings during workspace startup (see the comment
#23277 (comment)).

It would also be useful if the test verifies that the workspace has actually started using the default devfile YAML. For example, this can be done by reading the devfile content in the user dashboard.

@SkorikSergey
Copy link
Contributor Author

The test should not expect any additional warnings during workspace startup (see the comment #23277 (comment)).

It would also be useful if the test verifies that the workspace has actually started using the default devfile YAML. For example, this can be done by reading the devfile content in the user dashboard.

Thank you. I will wait for #23277 resolved.

@dmytro-ndp
Copy link
Contributor

@SkorikSergey : for your information: devfile content in the user dashboard is wrong (see issue #23301)
Therefore, it would better to read actual DevWorkspace content from user namespace to make sure devfile.yaml has been applied correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/qe status/in-progress This issue has been taken by an engineer and is under active development.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants