Skip to content

Commit

Permalink
chore: add loading in route page (#2287)
Browse files Browse the repository at this point in the history
  • Loading branch information
CP3cham authored Jan 25, 2022
1 parent 131601d commit 4c8972e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions web/cypress/integration/route/create-edit-duplicate-delete-route.spec.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,9 @@ context('Create and Delete Route', () => {
.within(() => {
cy.contains('OK').click();
});
cy.get(selector.deleteAlert).within(()=>{
cy.get('.ant-btn-loading-icon').should('be.visible');
})
cy.get(selector.notification).should('contain', data.deleteRouteSuccess);
cy.get(selector.notificationCloseIcon).click();
});
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/Route/List.tsx
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ const Page: React.FC = () => {
</>
),
onOk: () => {
remove(record.id!).then(() => {
return remove(record.id!).then(() => {
handleTableActionSuccessResponse(
`${formatMessage({ id: 'component.global.delete' })} ${formatMessage({
id: 'menu.routes',
Expand Down

0 comments on commit 4c8972e

Please sign in to comment.