diff --git a/tests/cypress/integration/auth_page.js b/tests/cypress/integration/auth_page.js new file mode 100644 index 00000000..28e55304 --- /dev/null +++ b/tests/cypress/integration/auth_page.js @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2020 Intel Corporation + * + * SPDX-License-Identifier: MIT + */ + +/// + +describe('Check server availability', () => { + it('Server web interface is available', () => { + cy.visit('http://localhost:8080') + }) + + it('"/auth/login" contains in the URL', () => { + cy.url().should('include', '/auth/login') + }) + + it('"Sign in" buttun is exists', () => { + cy.get('[type="submit"]') + }) + + it('Check plaseholder "Username"', () => { + cy.get('input').invoke('attr', 'placeholder').should('contain', 'Username') + }) + + it('Check plaseholder "Password"', () => { + cy.get('[type="password"]') + }) + + it('Click to "Sign in" buttun', () => { + cy.get('[type="submit"]').click() + }) +})