diff --git a/test/cypress/integration/home.spec.js b/test/cypress/integration/home.spec.js deleted file mode 100755 index f7902d8bf..000000000 --- a/test/cypress/integration/home.spec.js +++ /dev/null @@ -1,40 +0,0 @@ -/// -// Use `cy.dataCy` custom command for more robust tests -// See https://docs.cypress.io/guides/references/best-practices.html#Selecting-Elements - -// ** This file is an example of how to write Cypress tests, you can safely delete it ** - -// This test will pass when run against a clean Quasar project -describe('Landing', () => { - beforeEach(() => { - cy.visit('/'); - }); - it('.should() - assert that is correct', () => { - cy.title().should('include', 'Quasar'); - }); -}); - -// ** The following code is an example to show you how to write some tests for your home page ** -// -// describe('Home page tests', () => { -// beforeEach(() => { -// cy.visit('/'); -// }); -// it('has pretty background', () => { -// cy.dataCy('landing-wrapper') -// .should('have.css', 'background').and('match', /(".+(\/img\/background).+\.png)/); -// }); -// it('has pretty logo', () => { -// cy.dataCy('landing-wrapper img') -// .should('have.class', 'logo-main') -// .and('have.attr', 'src') -// .and('match', /^(data:image\/svg\+xml).+/); -// }); -// it('has very important information', () => { -// cy.dataCy('instruction-wrapper') -// .should('contain', 'SETUP INSTRUCTIONS') -// .and('contain', 'Configure Authentication') -// .and('contain', 'Database Configuration and CRUD operations') -// .and('contain', 'Continuous Integration & Continuous Deployment CI/CD'); -// }); -// }); diff --git a/test/cypress/integration/login.spec.js b/test/cypress/integration/login.spec.js new file mode 100755 index 000000000..b3d272047 --- /dev/null +++ b/test/cypress/integration/login.spec.js @@ -0,0 +1,13 @@ +/// <reference types="cypress" /> + +describe('Login', () => { + beforeEach(() => { + cy.visit('/#/login'); + }); + + it('should log in', () => { + cy.get('input[aria-label="Username"]').type('developer') + cy.get('input[aria-label="Password"]').type('nightmare') + cy.get('button[type="submit"]').click() + }); +}); \ No newline at end of file