Skip to content

Commit

Permalink
remove unncessary then()
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmontville committed Oct 8, 2024
1 parent 044c783 commit 80af032
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,14 @@ function inputLoginValues() {

function completeParentSignUp(org) {
cy.get('div.p-checkbox-box').click();

cy.get('button').contains('Continue').click();
cy.get('button').contains('Next').click();

cy.get('h2').should('contain.text', org.orgVerified);
}

describe('The partner admin user', () => {
beforeEach(() => {
cy.login(Cypress.env('partnerAdminUsername'), Cypress.env('partnerAdminPassword')).then(() => {});
cy.login(Cypress.env('partnerAdminUsername'), Cypress.env('partnerAdminPassword'));
cy.visit('/');
cy.visit(listOrgsUrl);
});
Expand All @@ -64,12 +62,13 @@ describe('The partner admin user', () => {
it(`should see the organization ${org.orgName} and should click on Invite Users`, () => {
checkOrgExists(org);

// Invoke the activation code input field to get the value, then visit the sign-up page
// Invoke the activation code input field to get the value
cy.get('[data-cy="input-text-activation-code"]')
.invoke('attr', 'value')
.then((value) => {
expect(value).to.not.be.empty;

// Visit the sign-up page with the activation code
visitSignUpPage(value);
inputLoginValues();
completeParentSignUp(org);
Expand Down

0 comments on commit 80af032

Please sign in to comment.