fix: fix cypress error (#1817)

* 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
This commit is contained in:
jakiuncle
2023-05-09 20:51:07 +08:00
committed by GitHub
parent cb542ae46a
commit 7df043fb15
19 changed files with 18 additions and 44 deletions

View File

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