Ocelot-Social/cypress/integration/Authentication/when_I_fill_in_my_credentials.js
Ulf Gebhardt c52dceddf2
authentication feature
fixed a problem in login component
2021-04-14 20:36:12 +02:00

11 lines
340 B
JavaScript

import { When } from "cypress-cucumber-preprocessor/steps";
import loginCredentials from '../data/loginCredentials'
When("I fill in my credentials", () => {
cy.get("input[name=email]")
.trigger("focus")
.type(loginCredentials.email)
.get("input[name=password]")
.trigger("focus")
.type(loginCredentials.password);
});