Add a cypress test. (#1936)

* Add a cypress test.

* Rename the file of test. Change location of the file.

Co-authored-by: Dmitry Kruchinin <dmitryx.kruchinin@intel.com>
main
Dmitry Kruchinin 6 years ago committed by GitHub
parent 90b5752346
commit 1255996964
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,33 @@
/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*/
/// <reference types="cypress" />
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()
})
})
Loading…
Cancel
Save