Skip to content

Commit

Permalink
use data test id
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorCapCoder committed Nov 2, 2023
1 parent 281533d commit 66a6bf5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion cypress/e2e/class_management/groupMembers.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Feature: Group - To show members in a group

As a teacher I want to see the members in a group

#@stable_test
Scenario: As a teacher I can manage a group of type class from external systems
Given I am logged in as a 'teacher1_nbc' at 'nbc'
When I go to administration page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Feature: Group - To show groups and classes in one table with respective functio

As a teacher I want to see all groups and classes belonging to my school.

#@stable_test
Scenario: As a teacher i can add a class to school
Given I am logged in as a 'teacher1_nbc' at 'nbc'
When I go to administration page
Expand All @@ -21,7 +20,6 @@ Feature: Group - To show groups and classes in one table with respective functio
When I confirm managing the class
Then I see the new class administration page

#@stable_test
Scenario: As a teacher i can see all classes and groups of my school on the new class administration page.
Given I see the new class administration page
Then I can see the page title
Expand All @@ -32,7 +30,6 @@ Feature: Group - To show groups and classes in one table with respective functio
Then I can see the manage button for group 'Cypress-Test-Group'
Then I can see 4 enabled action items for class '1'

#@stable_test
Scenario: As a teacher i can manage my classes
Given I see the new class administration page
When I click the manage button
Expand All @@ -45,7 +42,6 @@ Feature: Group - To show groups and classes in one table with respective functio
When I confirm managing the class
Then I see the new class administration page

#@stable_test
Scenario: As a teacher i can edit my classes
Given I see the new class administration page
When I click the edit button
Expand All @@ -59,7 +55,6 @@ Feature: Group - To show groups and classes in one table with respective functio
Then I can click on the save changes button
Then I see the new class administration page

#@stable_test
Scenario: As a teacher i can upgrade my upgradable classes
Given I see the new class administration page
When I click the create successor button
Expand All @@ -74,7 +69,6 @@ Feature: Group - To show groups and classes in one table with respective functio
Then I see the new class administration page
Then I can see the disabled create successor button of the original class

#@stable_test
Scenario: As a teacher i can delete my classes
Given I see the new class administration page
When I click the delete button
Expand All @@ -85,7 +79,6 @@ Feature: Group - To show groups and classes in one table with respective functio
When I click the confirmation button on the delete modal
Then I see the new class administration page

#@stable_test
Scenario: As a post-condition teacher deletes the successor class and logs out
Given I see the new class administration page
When I click on the next year tab
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/pages/class_management/pageClasses.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Classes {
static #editClassButton = '[data-testid="class-table-edit-btn"]';
static #createSuccessorButton = '[data-testid="class-table-successor-btn"]';
static #deleteClassButton = '[data-testid="class-table-delete-btn"]';
static #deleteDialog = '.v-dialog--active';
static #deleteDialog = '[data-testid="dialog-title"]';
static #deleteDialogCancel = '[data-testid="dialog-cancel"]';
static #deleteDialogConfirm = '[data-testid="dialog-confirm"]';
static #adminGroupTitle = '[data-testid="admin-class-title"]';
Expand Down

0 comments on commit 66a6bf5

Please sign in to comment.