feat: Test whether the page can be accessed (#1517)

* feat: add new line

* feat: Test whether the page can be accessed

* feat: Change the e2e order

* feat: add Test Retries

* feat: change yarn.lock

* feat: add new line
This commit is contained in:
jakiuncle
2023-02-03 19:59:28 +08:00
committed by GitHub
parent 19e7d0b0bd
commit fdccb8b22b
23 changed files with 828 additions and 23 deletions

View File

@ -0,0 +1,16 @@
describe('Test products', () => {
beforeEach(()=>{
cy.visit("http://localhost:7001");
cy.login();
})
const selector = {
add: ".ant-table-title > div > .ant-btn > span"
};
it("test products", () => {
cy.visit("http://localhost:7001");
cy.visit("http://localhost:7001/products");
cy.url().should("eq", "http://localhost:7001/products");
cy.get(selector.add).click();
cy.url().should("include","http://localhost:7001/products/")
});
})