|
@@ -11,6 +11,8 @@ import {
|
|
|
normalIntercept,
|
|
|
intercept,
|
|
|
tableBtnClick,
|
|
|
+ exportIntercept,
|
|
|
+ validateExport,
|
|
|
} from './utils';
|
|
|
|
|
|
describe('角色管理', function() {
|
|
@@ -37,6 +39,7 @@ describe('角色管理', function() {
|
|
|
successIntercept('/role/updateRole');
|
|
|
successIntercept('/role/delRole');
|
|
|
normalIntercept('/menu/getMenu', 'menu/all');
|
|
|
+ exportIntercept('/role/export');
|
|
|
});
|
|
|
|
|
|
const TABLE_NAME = 'role_table',
|
|
@@ -98,4 +101,8 @@ describe('角色管理', function() {
|
|
|
cy.get('.ant-message-notice-content').should('include.text', '设置成功');
|
|
|
cy.getTestId('role_tree_modal').should('not.exist');
|
|
|
});
|
|
|
+
|
|
|
+ it('导出', function() {
|
|
|
+ validateExport();
|
|
|
+ });
|
|
|
});
|