💚 Fix flaky connect test
This commit is contained in:
1 parent
d47ea73dfc
commit
6165e5b0f0
2 files changed
+4
No files matched your search
@@ -31,6 +31,7 @@ context('Connection test against virtual printer', () => {
|
||||
.should('contain', 'Connect')
|
||||
.click();
|
||||
|
||||
cy.wait(["@connectionCommand", "@connectionDetails"]);
|
||||
cy.get('[data-test-id=sidebar-connection-content]', {timeout: 10000})
|
||||
.should('not.be.visible');
|
||||
cy.get('[data-test-id=state-string]')
|
||||
@@ -43,6 +44,7 @@ context('Connection test against virtual printer', () => {
|
||||
.should('contain', 'Disconnect')
|
||||
.click();
|
||||
|
||||
cy.wait(["@connectionCommand", "@connectionDetails"]);
|
||||
cy.get('[data-test-id=state-string]')
|
||||
.should('contain', 'Offline');
|
||||
});
|
||||
|
||||
@@ -6,6 +6,8 @@ export const prepare_server = () => {
|
||||
cy.route("GET", "/api/files?recursive=true").as("files")
|
||||
cy.route("GET", "/plugin/softwareupdate/check").as("softwareupdate");
|
||||
cy.route("GET", "/api/plugin/pluginmanager").as("pluginmanager");
|
||||
cy.route("POST", "/api/connection").as("connectionCommand");
|
||||
cy.route("GET", "/api/connection").as("connectionDetails");
|
||||
}
|
||||
|
||||
export const await_loginui = () => {
|
||||
|
||||
Reference in new issue
Block a user