💚 Fix cypress login test's wobbliness

Hopefully at least...
This commit is contained in:
Gina Häußge committed 2020-07-06 22:30:36 +02:00
1 parent fa148a8b7e
commit f2ca247731
2 files changed
+15 -1

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ describe('Connection test against virtual printer', () => {
.should('contain', 'Connect')
.click();
cy.get('#connection .accordion-inner')
cy.get('#connection .accordion-inner', {timeout: 10000})
.should('not.be.visible');
cy.get('#state .accordion-inner strong:first')
.should('contain', 'Operational');
+14
View File
@@ -2,6 +2,20 @@ describe('Login tests', () => {
const username = 'admin';
const password = 'test';
it('ensure cache hit', () => {
// login
cy.request({
method: 'POST',
url: '/api/login',
body: {
"user": username,
"pass": password
}
});
cy.visit('/');
});
context('Successful login', () => {
it('logs in', () => {
cy.visit('/');