mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00

* fix: fix cypress error * fix: fix cypress error * fix: fix cypress error * fix: fix cypress error * fix: fix cypress error * fix: fix cypress error * fix: fix cypress error * fix: fix cypress error * fix: fix cypress error
17 lines
491 B
JavaScript
17 lines
491 B
JavaScript
describe('Test webhooks', () => {
|
|
beforeEach(()=>{
|
|
cy.visit("http://localhost:7001");
|
|
cy.login();
|
|
})
|
|
const selector = {
|
|
add: ".ant-table-title > div > .ant-btn"
|
|
};
|
|
it("test webhooks", () => {
|
|
|
|
cy.visit("http://localhost:7001/webhooks");
|
|
cy.url().should("eq", "http://localhost:7001/webhooks");
|
|
cy.get(selector.add,{timeout:10000}).click();
|
|
cy.url().should("include","http://localhost:7001/webhooks/");
|
|
});
|
|
})
|