Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Plain Text by belkooooo ( 4 years ago )
describe('New implemented tests for Home Pages', () => {
it('visit the home page' , () => {
var start = 0;
cy.then(() => {
start = performance.now();
});
cy.visit("https://openid-dev.bloola.me/login")
.then(() => {
cy.log(`duration: ${performance.now() - start} ms`);
});
});
it('validation of the frontend part' , () => {
cy.get('[data-cy="username-input"]')
.should('be.empty')
.type('[email protected]')
.invoke('val')
.then(val=>{
const username = val;
expect(username).to.equal('[email protected]');
});
cy.get('[data-cy="pw-input"]')
.type('T3st0r-!')
.invoke('val')
.then(val=>{
const password = val;
expect(password).to.equal('T3st0r-!');
});
var start = 0;
cy.then(() => {
start = performance.now();
});
cy.get('[data-cy="login"]').click()
.then(() => {
cy.log(`duration: ${performance.now() - start} ms`);
});
var start = 0;
cy.then(() => {
start = performance.now();
cy.get('[data-cy="service-card"]').click()
.then(() => {
cy.log(`duration: ${performance.now() - start} ms`);
});
})
// cy.get('[data-cy="service-card"]').click().then(() => {
// t2 = Date.now()
// cy.log(`duration: ${(t2-t1)/1000} seconds`)
});
});
Revise this Paste
Parent: 123195