|
@@ -1,4 +1,5 @@
|
|
|
/// <reference types="cypress" />
|
|
|
+import { mockLoginSuccess } from '../../../support/mock/handlers/user';
|
|
|
import LoginPage from '../../../support/pageObjects/LoginPage';
|
|
|
import MainPage from '../../../support/pageObjects/MainPage';
|
|
|
import WorklistPage from '../../../support/pageObjects/WorklistPage';
|
|
@@ -140,8 +141,10 @@ describe('Enter Worklist', () => {
|
|
|
});
|
|
|
|
|
|
it('should navigate to the worklist and verify data', () => {
|
|
|
+ mockLoginSuccess();
|
|
|
loginPage.login('admin', '123456');
|
|
|
cy.contains('登录成功').should('be.visible', { timeout: 10000 });
|
|
|
+ cy.wait('@loginSuccess');
|
|
|
|
|
|
mainPage.clickPatientManagementButton();
|
|
|
mainPage.clickWorklistButton();
|