mirror of
https://github.com/Elvanos/fantasia-archive.git
synced 2024-05-18 11:13:15 +12:00
47 lines
1.6 KiB
TypeScript
47 lines
1.6 KiB
TypeScript
// 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 <title> is correct', () => {
|
|
cy.title().should('include', 'Fantasia Archive')
|
|
cy.get('li').first().click()
|
|
cy.contains('Clicks on todos: 1').should('exist')
|
|
})
|
|
})
|
|
|
|
// ** 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');
|
|
// });
|
|
// });
|
|
|
|
// Workaround for Cypress AE + TS + Vite
|
|
// See: https://github.com/quasarframework/quasar-testing/issues/262#issuecomment-1154127497
|
|
export {}
|