Skip to content

Commit 80e4fa2

Browse files
committed
fix: remove request
Signed-off-by: Enjeck C. <patrathewhiz@gmail.com>
1 parent a380110 commit 80e4fa2

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

‎cypress/e2e/view-filtering-selection-row-removal.cy.js‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,11 @@ describe('Filtering in a view by selection columns (Cypress supplement – row r
170170
// # edit checked row
171171
// ## uncheck
172172
cy.intercept({ method: 'PUT', url: '**/apps/tables/row/*' }).as('updateCheckedRow')
173-
cy.intercept({ method: 'GET', url: '**/apps/tables/view/*/row/*/present' }).as('isRowInViewPresentAfterEdit')
174173
cy.contains('[data-cy="ncTable"] [data-cy="customTableRow"]', 'checked row').closest('[data-cy="customTableRow"]').find('[data-cy="editRowBtn"]').click()
175174
cy.get('[data-cy="editRowModal"] .checkbox-radio-switch').click()
176175
cy.get('[data-cy="editRowSaveButton"]').click()
177176

178177
cy.wait('@updateCheckedRow')
179-
cy.then(() => {
180-
waitForRowPresenceCheck('@isRowInViewPresentAfterEdit', checkedRowId, false)
181-
})
182178

183179
// ## check if row does not exist
184180
cy.contains('[data-cy="ncTable"] [data-cy="customTableRow"]', 'checked row').should('not.exist')
@@ -187,13 +183,9 @@ describe('Filtering in a view by selection columns (Cypress supplement – row r
187183
// # inline edit row
188184
// ## uncheck row
189185
cy.intercept({ method: 'PUT', url: '**/apps/tables/row/*' }).as('inlineUpdateRow')
190-
cy.intercept({ method: 'GET', url: '**/apps/tables/view/*/row/*/present' }).as('isRowInViewPresentAfterInlineEdit')
191186
cy.contains('[data-cy="ncTable"] [data-cy="customTableRow"]', 'first row').closest('[data-cy="customTableRow"]').find('.inline-editing-container input').click({ force: true })
192187

193-
cy.wait('@inlineUpdateRow').then(({ request }) => {
194-
const inlineUpdatedRowId = request.url.split('/').pop()
195-
waitForRowPresenceCheck('@isRowInViewPresentAfterInlineEdit', inlineUpdatedRowId, false)
196-
})
188+
cy.wait('@inlineUpdateRow')
197189

198190
// ## check if row does not exist
199191
cy.contains('[data-cy="ncTable"] [data-cy="customTableRow"]', 'first row').should('not.exist')

0 commit comments

Comments
 (0)