Ich habe zum Beispiel einen Test Schritt in yml geschrieben
Code: Select all
methods:
ssoLogin:
desc: sso login
steps:
- webInput(id,login-username, ytx)
- webClick(id,btn-login-nopwd)
Code: Select all
describe('Test scope 1', () => {
it('ssoLogin', () => {
cy.visit("xxx.com/sson/login?client_");
cy.get('#login-username').should('be.visible').clear().type('ytx', { delay: 100 });
cy.get('#btn-login-nopwd').should('be.visible').click();
cy.wait(1000 * 5)
});
});