Skip to content

Commit

Permalink
Update LoginPage.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaushikgtm authored Nov 29, 2024
1 parent a3f62d1 commit 22ab14b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cypress/pageobject/Login/LoginPage.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// LoginPage.ts

class LoginPage {
submitButtonSelector = "login";
languageSelector = "language-selector";
sidebarSelector = "sidebar";
submitButtonSelector = "#login";
languageSelector = "#language-selector";
sidebarSelector = "#sidebar";
loginAsDisctrictAdmin(): void {
cy.loginByApi("devdistrictadmin", "Coronasafe@123");
}
Expand Down Expand Up @@ -43,11 +43,11 @@ class LoginPage {
}

clickContributeOnGitHub() {
cy.get("https://github.com/ohcnetwork").scrollIntoView().click();
cy.get('a[href="https://github.com/ohcnetwork"]').scrollIntoView().click();
}

clickThirdPartyLicense() {
cy.get("/licenses").scrollIntoView().click();
cy.get('a[href="/licenses"]').scrollIntoView().click();
}

selectLanguage(languageCode: string) {
Expand All @@ -73,7 +73,7 @@ class LoginPage {
}

verifySidebarText(expectedText: string) {
cy.get(this.submitButtonSelector).should("have.text", expectedText);
+ cy.get(this.sidebarSelector).should("have.text", expectedText);
}

switchLanguageAndVerifySidebars(languageMappings: { [key: string]: string }) {
Expand Down

0 comments on commit 22ab14b

Please sign in to comment.