mark-header.spec.cy.ts 601 B

12345678910111213141516171819202122232425
  1. describe("评卷页面", () => {
  2. beforeEach(() => {
  3. cy.networkStub();
  4. cy.visit("/");
  5. });
  6. it("成功加载", () => {
  7. cy.wait(1000);
  8. });
  9. it("科目代码和名称显示", () => {
  10. cy.wait(1000)
  11. .get(".header-container a")
  12. .should("contain", "431-金融学综合");
  13. });
  14. it("用户姓名显示", () => {
  15. cy.wait(1000).get(".header-container").should("contain", "王小兰");
  16. });
  17. it.only("小助手显示", () => {
  18. cy.wait(9000).get(".header-container .assistant-text").click();
  19. cy.get(".assistant-table").should("contain", "全卷");
  20. });
  21. });