-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add buzz section, add wait after each workaround
- Loading branch information
1 parent
509d4d2
commit bd918c3
Showing
7 changed files
with
125 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
class orangeDemoBuzzPage{ | ||
|
||
elements = { | ||
buzzMessageField:() => cy.get('.oxd-buzz-post-input'), | ||
buzzMessagePostButton:() => cy.get('button[type="submit"]') | ||
|
||
} | ||
|
||
typeBuzzMessage(inputBuzzMessage) { | ||
this.elements.buzzMessageField().type(inputBuzzMessage); | ||
} | ||
|
||
postBuzzMessage() { | ||
this.elements.buzzMessagePostButton().click(); | ||
} | ||
} | ||
|
||
module.exports = new orangeDemoBuzzPage(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
class orangeDemoVerticalMenu{ | ||
|
||
elements = { | ||
dashboardLink:() => cy.contains('.oxd-main-menu-item', 'Dashboard'), | ||
myInfoLink:() => cy.contains('.oxd-main-menu-item', 'My Info'), | ||
buzzLink: () => cy.contains('.oxd-main-menu-item', 'Buzz'), | ||
|
||
} | ||
|
||
clickDashboardLink(){ | ||
this.elements.dashboardLink().click(); | ||
} | ||
|
||
clickMyInfoLink(){ | ||
this.elements.myInfoLink().click(); | ||
} | ||
|
||
clickBuzzLink(){ | ||
this.elements.buzzLink().click(); | ||
} | ||
} | ||
|
||
module.exports = new orangeDemoVerticalMenu(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters