Skip to content

Commit 750cb34

Browse files
committed
fix copy/paste mistake
1 parent 6eb4d59 commit 750cb34

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

packages/main/src/components/VariantManagement/VariantManagement.cy.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -691,11 +691,9 @@ describe('VariantManagement', () => {
691691
cy.focused().should('have.attr', 'ui5-table-row');
692692
cy.focused().should('have.attr', 'data-id', 'VariantItem 2');
693693

694-
cy.get('[ui5-table-row-action][text="Delete View"]').each(($action) => {
695-
if ($action.parent().attr('data-id') !== 'VariantItem 3') {
696-
cy.wrap($action).click();
697-
}
698-
});
694+
// no other rows remaining
695+
cy.get('@deleteActions').first().click();
696+
cy.findByText('Cancel').should('be.focused');
699697
});
700698

701699
it('Manage Views input validation', () => {

0 commit comments

Comments
 (0)