Skip to content

Commit

Permalink
added test to verify login & signup flags are set after plugin install
Browse files Browse the repository at this point in the history
  • Loading branch information
hasanzade-hasan committed Aug 18, 2023
1 parent 36ee2b5 commit f0023d7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
describe('Log-in & sign-up flags are set', () => {
it('successfully set login & signup flags', () => {
cy.loginAsAdmin().goToSettings();

// Go to Log-in & Sign-up
cy.get('[data-testid="sw-icon__regular-sign-in"]').click();

cy.get('[name="core.loginRegistration.showPhoneNumberField"]').siblings().first().should('have.css', 'background', 'rgb(24, 158, 255)');
cy.get('[name="core.loginRegistration.showAccountTypeSelection"]').siblings().first().should('have.css', 'background', 'rgb(24, 158, 255)');
});
});

0 comments on commit f0023d7

Please sign in to comment.