💚 Fix cypress login test's wobbliness
Hopefully at least...
This commit is contained in:
1 parent
fa148a8b7e
commit
f2ca247731
2 files changed
+15
-1
No files matched your search
@@ -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');
|
||||
|
||||
@@ -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('/');
|
||||
|
||||
Reference in new issue
Block a user