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

17 lines
507 B
JavaScript
Raw Normal View History

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