Skip to content

Commit 2e6c485

Browse files
authored
Fixed project import logic and dashboard locator (#22517)
Signed-off-by: Tibor Dancs <[email protected]>
1 parent b0189ee commit 2e6c485

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/e2e/constants/MONACO_CONSTANTS.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ export const MONACO_CONSTANTS: {
2121
* https://github.com/redhat-developer/vscode-extension-tester/tree/master/locators/lib ,
2222
* "1.73.0" by default.
2323
*/
24-
TS_SELENIUM_MONACO_PAGE_OBJECTS_USE_VERSION: process.env.TS_SELENIUM_MONACO_PAGE_OBJECTS_USE_VERSION || '1.73.0'
24+
TS_SELENIUM_MONACO_PAGE_OBJECTS_USE_VERSION: process.env.TS_SELENIUM_MONACO_PAGE_OBJECTS_USE_VERSION || '1.76.0'
2525
};

tests/e2e/pageobjects/dashboard/Workspaces.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export class Workspaces {
229229
}
230230

231231
private getActionsPopupButtonLocator(workspaceName: string, buttonText: string): By {
232-
return By.xpath(`${this.getWorkspaceListItemLocator(workspaceName).value}//li//button[text()='${buttonText}']`);
232+
return By.xpath(`${this.getWorkspaceListItemLocator(workspaceName).value}//button[text()='${buttonText}']`);
233233
}
234234

235235
private getOpenButtonLocator(workspaceName: string): By {

tests/e2e/specs/SmokeTest.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ suite('The SmokeTest userstory', function (): void {
4545
});
4646
test('Check a project folder has been created', async function (): Promise<void> {
4747
const projectName: string = FACTORY_TEST_CONSTANTS.TS_SELENIUM_PROJECT_NAME || StringUtil.getProjectNameFromGitUrl(factoryUrl);
48-
projectSection = await new SideBarView().getContent().getSection(projectName);
49-
Logger.debug(`new SideBarView().getContent().getSection: get ${projectName}`);
48+
projectSection = (await new SideBarView().getContent().getSections())[0]; // get the (WORKSPACE) section from the sidebar - contains project content
49+
expect(await projectSection.findItem(projectName)).not.eqls(undefined);
5050
});
5151
test('Check the project files was imported', async function (): Promise<void> {
5252
Logger.debug(`projectSection.findItem: find ${BASE_TEST_CONSTANTS.TS_SELENIUM_PROJECT_ROOT_FILE_NAME}`);

0 commit comments

Comments
 (0)