Skip to content

Commit

Permalink
test: update selector in field validation test
Browse files Browse the repository at this point in the history
  • Loading branch information
demshy committed Sep 6, 2023
1 parent 515b04d commit 692031c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cypress/utils/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ function validateListFields({ name, description }) {
cy.contains('button', 'Save').click();
assertNotification(notifications.error.missingField);
assertFieldErrorStatus('Authors', colorError);
cy.get('div[class*=ListControl]')
cy.get('div[class*=SortableListItem]')
.eq(2)
.as('listControl');
assertFieldErrorStatus('Name', colorError, { scope: cy.get('@listControl') });
Expand Down Expand Up @@ -527,7 +527,7 @@ function validateNestedListFields() {
cy.contains('button', 'cities').click();
cy.contains('label', 'Cities')
.next()
.find('div[class*=ListControl]')
.find('div[class*=SortableListItem]')
.eq(2)
.as('secondCitiesListControl');
cy.get('@secondCitiesListControl')
Expand Down Expand Up @@ -560,22 +560,22 @@ function validateNestedListFields() {
// list control aliases
cy.contains('label', 'Hotel Locations')
.next()
.find('div[class*=ListControl]')
.find('div[class*=SortableListItem]')
.first()
.as('hotelLocationsListControl');
cy.contains('label', 'Cities')
.next()
.find('div[class*=ListControl]')
.find('div[class*=SortableListItem]')
.eq(0)
.as('firstCitiesListControl');
cy.contains('label', 'City Locations')
.next()
.find('div[class*=ListControl]')
.find('div[class*=SortableListItem]')
.eq(0)
.as('firstCityLocationsListControl');
cy.contains('label', 'Cities')
.next()
.find('div[class*=ListControl]')
.find('div[class*=SortableListItem]')
.eq(3)
.as('secondCityLocationsListControl');

Expand Down

0 comments on commit 692031c

Please sign in to comment.