-
describe('Cypress Tests', () => { it('Open Motiff & Login', () => { cy.visit('https://wukong.yuanfudao.biz/testing/index.html') cy.wait(1000) const {username, password} = {username: 'yaogangqiang@yuanfudao.com', password: '19881214'} cy.get('#account').type(username); cy.get('#password').type(`${password}{enter}`) cy.wait(1000) cy.url().should('include', '/recent') cy.get('[data-test="file-card-create"]').click().url().should('include', '/editor?docId=') cy.wait(10000) console.log('done') }) it('Draw a rect', () => { cy.window().then(win => {win.dispatchEvent(new KeyboardEvent('keydown', {keyCode: 82}))}) cy.get('._CenterStage_1yudp_64').click() }) })
想要评论请 注册 或 登录