I am completely new to the protractor and currently, I'm testing my login page using my own login data and I want to use dummy data as profile login data. Can these enter in my spec.ts file or protractor.conf.js file?
This is my spec.ts
file:
it('Navigate to the dashboard', () => {
page.getEmailLogin().sendKeys('[email protected]');
page.getPasswordLogin().sendKeys('123456');
page.getSubmitLogin().click();
const EC = browser.ExpectedConditions;
browser.wait(EC.urlContains('localhost:49152'), 10000);
browser.wait(EC.urlIs('http://localhost:49152/'), 10000);
});
I tried to add this data to params field but the login page requires valid data confirmed by the user.