12345678910111213141516171819202122232425262728 |
- describe("评卷页面", () => {
- beforeEach(() => {
- cy.networkStub();
- });
- it("成功加载", () => {
- cy.visit("/");
- cy.wait(1000);
- });
- it("科目代码和名称显示", () => {
- cy.visit("/");
- cy.wait(1000)
- .get(".header-container a")
- .should("contain", "431-金融学综合");
- });
- it("用户姓名显示", () => {
- cy.visit("/");
- cy.wait(1000).get(".header-container").should("contain", "王小兰");
- });
- it("小助手显示", () => {
- cy.visit("/");
- cy.wait(1000).get(".header-container .assistant-text").click();
- cy.get(".assistant-table").should("contain", "全卷");
- });
- });
|