Skip to content

Commit

Permalink
Updated bc address component
Browse files Browse the repository at this point in the history
  • Loading branch information
nimya-aot committed Sep 12, 2024
1 parent 6de61ee commit e2a74e9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/functional/cypress/e2e/form-design-advancedfield.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ describe('Form Designer', () => {

});
});

// Check registered business address
it('Checks the orgbook', () => {

cy.viewport(1000, 1800);
Expand Down Expand Up @@ -193,7 +193,7 @@ describe('Form Designer', () => {
const coords = $el[0].getBoundingClientRect();
cy.get('[data-type="bcaddress"]')
.trigger('mousedown', { which: 1}, { force: true })
.trigger('mousemove', coords.x, +20, { force: true })
.trigger('mousemove', coords.x, +30, { force: true })
//.trigger('mousemove', coords.y, +100, { force: true })
.trigger('mouseup', { force: true });
cy.waitForLoad();
Expand Down Expand Up @@ -268,7 +268,6 @@ describe('Form Designer', () => {
cy.get('.mdi-printer').should('be.visible');
cy.get('.mdi-content-save').should('be.visible');
cy.waitForLoad();
// Check registered business address

cy.waitForLoad();
cy.waitForLoad();
Expand All @@ -280,7 +279,6 @@ describe('Form Designer', () => {
cy.get('input[type="checkbox"]').click();

cy.get('div').find('textarea').type('some text');
cy.get('input[name="data[bcaddress]"').type('goldstream');
cy.get('input[name="data[simpleurladvanced]"').type('www.google');
cy.get('.choices__inner').click();
cy.get('.choices__inner').type('hello');
Expand All @@ -290,6 +288,7 @@ describe('Form Designer', () => {
cy.contains('THRIFTY FOODS').click();
cy.get('input[name="data[bcaddress]"').click();
cy.get('input[name="data[bcaddress]"').type('2260 Sooke');
cy.contains('2260 Sooke').click();
cy.get('.browse').should('have.attr', 'ref').and('include', 'fileBrowse');
cy.get('.browse').should('have.attr', 'href').and('include', '#');
cy.get('.browse').click();
Expand Down Expand Up @@ -320,7 +319,7 @@ describe('Form Designer', () => {
cy.waitForLoad();
cy.get('.mdi-delete').click();
cy.get('[data-test="continue-btn-continue"]').click();
cy.get('#logoutButton > .v-btn__content > span').click();


})

Expand Down

0 comments on commit e2a74e9

Please sign in to comment.