fintech-automation-test
Version:
Autonomous Test Automation
21 lines (18 loc) • 848 B
JavaScript
const { I, HomePage } = inject();
Feature('To test screen comparison with resemble Js Example test');
Scenario('Compare CTBC Home Page @visual-test', async ({ I }) => {
I.amOnPage('https://fint-dev-digitalbanking.azurewebsites.net');
// I.wait(4)
I.resizeWindow(1200, 800);
// I.fillField('input[id=Email]', "test1235@mail.com");
// I.fillField('input[id=Mobile]', "8887778888");
// I.fillField('input[id=ConfirmPhoneNumber]', "8887778888");
// I.click('input#Country');
// I.fillField('input#Country', 'United States');
// I.click(locate('span').withAttr({ id: 'view_disclosure' }).withText('View Disclosures'));
// I.see('CLOSE');;
// I.click('CLOSE');
// I.checkOption('input[id=IsESign]');
I.saveScreenshot('CTBCHome.png');
I.seeVisualDiff('CTBCHome.png', { tolerance: 1, prepareBaseImage: false });
});