mark-header.spec.cy.ts 573 B

123456789101112131415161718192021
  1. describe("评卷页面", () => {
  2. it("成功加载", () => {
  3. cy.visit("/"); // change URL to match your dev URL
  4. });
  5. it("科目代码和名称显示", () => {
  6. cy.visit("/");
  7. cy.get(".header-container a").should("contain", "431-金融学综合");
  8. });
  9. it("用户姓名显示", () => {
  10. cy.visit("/");
  11. cy.get(".header-container").should("contain", "张小兰");
  12. });
  13. it("小助手显示", () => {
  14. cy.visit("/");
  15. cy.get(".header-container .assistant-text").click();
  16. cy.get(".assistant-table").should("contain", "全卷");
  17. });
  18. });