casdoor/web/cypress/e2e/payments.cy.js

17 lines
516 B
JavaScript
Raw Normal View History

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