Skip to content

Commit

Permalink
fix: Fix Test cases to make it independent from Labels - MEED-7573 - M…
Browse files Browse the repository at this point in the history
…eeds-io/MIPs#151 (#289)

This change will cherry-pick commit
5ae8bc7
from develop-meed
  • Loading branch information
boubaker authored and exo-swf committed Oct 8, 2024
1 parent 158b0d1 commit 99587f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/meeds/qa/ui/pages/MainSettingsPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public void checkOpenExternalUserSwitchButtonIsDisabled() {
}

public void checkAccessDefaultSpacesCount(int count) {
findByXPathOrCSS(String.format("//*[@id='generalSettings']//*[contains(text(), 'default space')]//ancestor::*[contains(@class, 'v-list-item')]//*[contains(text(), '%s selected space')]",
findByXPathOrCSS(String.format("//*[@id='generalSettings']//*[contains(@class, 'v-list-item')]//*[contains(text(), '%s space selected')]",
count)).assertVisible();
}

Expand Down Expand Up @@ -245,7 +245,7 @@ private ElementFacade accessExternalUserRestrictedSwitchButton() {
}

private ElementFacade accessEditDefaultSpaceButton() {
return findByXPathOrCSS("//*[@id='generalSettings']//*[contains(text(), 'default space')]//ancestor::*[contains(@class, 'v-list-item')]//*[contains(@class, 'fa-edit')]");
return findByXPathOrCSS("//*[@id='generalSettings']//*[contains(@class, 'v-list-item')]//*[contains(@class, 'fa-edit')]");
}

private TextBoxElementFacade accessDefaultSpaceInput() {
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/io/meeds/qa/ui/pages/ManageSpacesPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ private ElementFacade cancelButtonElement() {
}

private ElementFacade closedRadioBtnElement() {
return findByXPathOrCSS("//*[@class='v-input--selection-controls__input']/following::label[contains(text(),'Closed')]");
return findByXPathOrCSS("(//*[contains(@class, 'v-radio')])[3]");
}

private ElementFacade editIconOfGeneralSpaceSettingsElement() {
Expand Down Expand Up @@ -549,7 +549,7 @@ private TextBoxElementFacade okButtonElement() {
}

private ElementFacade openRadioBtnElement() {
return findByXPathOrCSS("//*[contains(@class,'v-navigation-drawer--open')]//input[@value='open']//ancestor::*[contains(@class,'v-radio')]");
return findByXPathOrCSS("(//*[contains(@class, 'v-radio')])[1]");
}

private ElementFacade registrationSectionElement() {
Expand Down Expand Up @@ -665,7 +665,7 @@ private TextBoxElementFacade uploadSpaceBannerButtonElement() {
}

private ElementFacade validationRadioBtnElement() {
return findByXPathOrCSS("//*[@class='v-input--selection-controls__input']/following::label[contains(text(),'Validation')]");
return findByXPathOrCSS("(//*[contains(@class, 'v-radio')])[2]");
}

private ElementFacade ckEditorDescription() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/meeds/qa/ui/pages/TasksPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ private ElementFacade changeLocationLinkElement() {
}

private ElementFacade checkChangesDrawerElement() {
return findByXPathOrCSS("//*[contains(@class, 'v-navigation-drawer--open')]//*[contains(@class, 'drawerTitle') and contains(text(), 'Changes')]");
return findByXPathOrCSS("//*[contains(@class, 'v-navigation-drawer--open')]//*[contains(@class, 'drawerTitle')]//*[contains(text(), 'Changes')]");
}

private ElementFacade ckEditorFrameDescriptionElement() {
Expand Down

0 comments on commit 99587f4

Please sign in to comment.