Skip to content

Commit

Permalink
updated tests and methods
Browse files Browse the repository at this point in the history
  • Loading branch information
atlldwp committed Jan 17, 2024
1 parent 91dea7e commit 241f621
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/dashboard/dashboard.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@relase
@release
Feature: Dashboard - To check contents on the dashboard

As a student and a teacher I want to see important information on the dashboard so that I can be updated start working
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/news/readNews.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@stable_test
@release
Feature: News - To read a news on the respective dashboards

As a teacher I want to read the news shown on the dashboard so that I'm informed about the latest news
Expand Down
4 changes: 2 additions & 2 deletions cypress/support/pages/news/pageNews.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class News {

clickOnCreateNewsSaveButton () {
cy.get(News.#newsCreateButton)
.click().wait(500)
.click()
}

seeTimeInput () {
Expand All @@ -67,7 +67,7 @@ class News {
}

enterNewsDescription (newsDescription) {
cy.get(News.#newsDescription, {timeout: 20000}).focus().wait(1000).realType(newsDescription)
cy.get(News.#newsDescription, {timeout: 20000}).focus().wait(1000).realType(newsDescription).wait(1000)
}

enterNewsTitle (newsTitle) {
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"cypress": "^13.2.0",
"cypress-file-upload": "^5.0.8",
"multiple-cucumber-html-reporter": "^1.21.4",
"webpack": "^5.77.0"
"webpack": "^5.77.0",
"cypress-real-events": "^1.11.0"
},
"cypress-cucumber-preprocessor": {
"stepDefinitions": "cypress/support/step_definition/**/*.js",
Expand All @@ -58,8 +59,5 @@
"enabled": false,
"output": "html-report/report.html"
}
},
"dependencies": {
"cypress-real-events": "^1.11.0"
}
}

0 comments on commit 241f621

Please sign in to comment.