Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Signup: update signup tests as some flows update the step order #1800

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
164 changes: 82 additions & 82 deletions specs/wp-signup-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,6 @@ describe( `[${ host }] Sign Up (${ screenSize }, ${ locale })`, function() {
}
);

step( 'Can see the account page and enter account details', async function() {
const createYourAccountPage = await CreateYourAccountPage.Expect( driver );
return await createYourAccountPage.enterAccountDetailsAndSubmit(
emailAddress,
blogName,
passwordForTestAccounts
);
} );

step( 'Can see the "About" page, and enter some site information', async function() {
const aboutPage = await AboutPage.Expect( driver );
await aboutPage.enterSiteDetails( blogName, 'Electronics' );
Expand Down Expand Up @@ -133,6 +124,15 @@ describe( `[${ host }] Sign Up (${ screenSize }, ${ locale })`, function() {
return await pickAPlanPage.selectFreePlan();
} );

step( 'Can see the account page and enter account details', async function() {
const createYourAccountPage = await CreateYourAccountPage.Expect( driver );
return await createYourAccountPage.enterAccountDetailsAndSubmit(
emailAddress,
blogName,
passwordForTestAccounts
);
} );

step(
'Can then see the sign up processing page which will finish automatically move along',
async function() {
Expand Down Expand Up @@ -193,15 +193,6 @@ describe( `[${ host }] Sign Up (${ screenSize }, ${ locale })`, function() {
await StartPage.Visit( driver, StartPage.getStartURL( { culture: locale } ) );
} );

step( 'Can see the account page and enter account details', async function() {
const createYourAccountPage = await CreateYourAccountPage.Expect( driver );
return await createYourAccountPage.enterAccountDetailsAndSubmit(
emailAddress,
blogName,
passwordForTestAccounts
);
} );

step( 'Can see the "About" page, and enter some site information', async function() {
const aboutPage = await AboutPage.Expect( driver );
await aboutPage.enterSiteDetails( blogName, 'Electronics' );
Expand Down Expand Up @@ -231,6 +222,15 @@ describe( `[${ host }] Sign Up (${ screenSize }, ${ locale })`, function() {
return await pickAPlanPage.selectFreePlan();
} );

step( 'Can see the account page and enter account details', async function() {
const createYourAccountPage = await CreateYourAccountPage.Expect( driver );
return await createYourAccountPage.enterAccountDetailsAndSubmit(
emailAddress,
blogName,
passwordForTestAccounts
);
} );

step(
'Can then see the sign up processing page which will finish automatically move along',
async function() {
Expand Down Expand Up @@ -259,15 +259,6 @@ describe( `[${ host }] Sign Up (${ screenSize }, ${ locale })`, function() {
await StartPage.Visit( driver, StartPage.getStartURL( { culture: locale } ) );
} );

step( 'Can see the account page and enter account details', async function() {
const createYourAccountPage = await CreateYourAccountPage.Expect( driver );
return await createYourAccountPage.enterAccountDetailsAndSubmit(
emailAddress,
blogName,
passwordForTestAccounts
);
} );

step( 'Can see the "About" page, and enter some site information', async function() {
const aboutPage = await AboutPage.Expect( driver );
return await aboutPage.enterSiteDetails( blogName, '', {
Expand Down Expand Up @@ -303,6 +294,15 @@ describe( `[${ host }] Sign Up (${ screenSize }, ${ locale })`, function() {
return await pickAPlanPage.selectPremiumPlan();
} );

step( 'Can see the account page and enter account details', async function() {
const createYourAccountPage = await CreateYourAccountPage.Expect( driver );
return await createYourAccountPage.enterAccountDetailsAndSubmit(
emailAddress,
blogName,
passwordForTestAccounts
);
} );

step(
'Can then see the sign up processing page which will automatically move along',
async function() {
Expand Down Expand Up @@ -381,15 +381,6 @@ describe( `[${ host }] Sign Up (${ screenSize }, ${ locale })`, function() {
await StartPage.Visit( driver, StartPage.getStartURL( { culture: locale } ) );
} );

step( 'Can then enter account details', async function() {
const createYourAccountPage = await CreateYourAccountPage.Expect( driver );
return await createYourAccountPage.enterAccountDetailsAndSubmit(
emailAddress,
blogName,
passwordForTestAccounts
);
} );

step( 'Can accept defaults for about page', async function() {
const aboutPage = await AboutPage.Expect( driver );
await aboutPage.enterSiteDetails( 'Step Back', 'Store Test Topic', { sell: true } );
Expand Down Expand Up @@ -423,6 +414,15 @@ describe( `[${ host }] Sign Up (${ screenSize }, ${ locale })`, function() {
return await pickAPlanPage.selectPremiumPlan();
} );

step( 'Can then enter account details', async function() {
const createYourAccountPage = await CreateYourAccountPage.Expect( driver );
return await createYourAccountPage.enterAccountDetailsAndSubmit(
emailAddress,
blogName,
passwordForTestAccounts
);
} );

step(
'Can then see the sign up processing page which will automatically move along',
async function() {
Expand Down Expand Up @@ -510,15 +510,6 @@ describe( `[${ host }] Sign Up (${ screenSize }, ${ locale })`, function() {
);
} );

step( 'Can see the account details page and enter account details', async function() {
const createYourAccountPage = await CreateYourAccountPage.Expect( driver );
return await createYourAccountPage.enterAccountDetailsAndSubmit(
emailAddress,
blogName,
passwordForTestAccounts
);
} );

step( 'Can see the about page and accept defaults', async function() {
const aboutPage = await AboutPage.Expect( driver );
return await aboutPage.submitForm();
Expand All @@ -542,6 +533,15 @@ describe( `[${ host }] Sign Up (${ screenSize }, ${ locale })`, function() {
}
);

step( 'Can see the account details page and enter account details', async function() {
const createYourAccountPage = await CreateYourAccountPage.Expect( driver );
return await createYourAccountPage.enterAccountDetailsAndSubmit(
emailAddress,
blogName,
passwordForTestAccounts
);
} );

step(
'Can then see the sign up processing page which will finish automatically move along',
async function() {
Expand Down Expand Up @@ -628,15 +628,6 @@ describe( `[${ host }] Sign Up (${ screenSize }, ${ locale })`, function() {
);
} );

step( 'Can see the account details page and enter account details', async function() {
const createYourAccountPage = await CreateYourAccountPage.Expect( driver );
return await createYourAccountPage.enterAccountDetailsAndSubmit(
emailAddress,
blogName,
passwordForTestAccounts
);
} );

step( 'Can see the about page and accept defaults', async function() {
const aboutPage = await AboutPage.Expect( driver );
return await aboutPage.submitForm();
Expand All @@ -657,6 +648,15 @@ describe( `[${ host }] Sign Up (${ screenSize }, ${ locale })`, function() {
}
);

step( 'Can see the account details page and enter account details', async function() {
const createYourAccountPage = await CreateYourAccountPage.Expect( driver );
return await createYourAccountPage.enterAccountDetailsAndSubmit(
emailAddress,
blogName,
passwordForTestAccounts
);
} );

step(
'Can then see the sign up processing page which will finish automatically move along',
async function() {
Expand Down Expand Up @@ -960,15 +960,6 @@ describe( `[${ host }] Sign Up (${ screenSize }, ${ locale })`, function() {
);
} );

step( 'Can then enter account details and continue', async function() {
const createYourAccountPage = await CreateYourAccountPage.Expect( driver );
return await createYourAccountPage.enterAccountDetailsAndSubmit(
emailAddress,
siteName,
passwordForTestAccounts
);
} );

step( 'Can see the about page and accept defaults', async function() {
const aboutPage = await AboutPage.Expect( driver );
return await aboutPage.submitForm();
Expand Down Expand Up @@ -998,6 +989,15 @@ describe( `[${ host }] Sign Up (${ screenSize }, ${ locale })`, function() {
}
);

step( 'Can then enter account details and continue', async function() {
const createYourAccountPage = await CreateYourAccountPage.Expect( driver );
return await createYourAccountPage.enterAccountDetailsAndSubmit(
emailAddress,
siteName,
passwordForTestAccounts
);
} );

step(
'Can then see the sign up processing page which will finish automatically move along',
async function() {
Expand Down Expand Up @@ -1105,16 +1105,6 @@ describe( `[${ host }] Sign Up (${ screenSize }, ${ locale })`, function() {
await StartPage.Visit( driver, StartPage.getStartURL( { culture: locale } ) );
} );

step( 'Can then enter account details and continue', async function() {
const emailAddress = dataHelper.getEmailAddress( blogName, signupInboxId );
const createYourAccountPage = await CreateYourAccountPage.Expect( driver );
return await createYourAccountPage.enterAccountDetailsAndSubmit(
emailAddress,
blogName,
passwordForTestAccounts
);
} );

step( 'Can see the about page and accept defaults', async function() {
const aboutPage = await AboutPage.Expect( driver );
return await aboutPage.submitForm();
Expand Down Expand Up @@ -1144,6 +1134,16 @@ describe( `[${ host }] Sign Up (${ screenSize }, ${ locale })`, function() {
return await pickAPlanPage.selectFreePlan();
} );

step( 'Can then enter account details and continue', async function() {
const emailAddress = dataHelper.getEmailAddress( blogName, signupInboxId );
const createYourAccountPage = await CreateYourAccountPage.Expect( driver );
return await createYourAccountPage.enterAccountDetailsAndSubmit(
emailAddress,
blogName,
passwordForTestAccounts
);
} );

step(
'Can then see the sign up processing page which will finish automatically move along',
async function() {
Expand Down Expand Up @@ -1655,15 +1655,6 @@ describe( `[${ host }] Sign Up (${ screenSize }, ${ locale })`, function() {
return await StartPage.Visit( driver, StartPage.getStartURL( { culture: locale } ) );
} );

step( 'Can see the account page and enter account details', async function() {
const createYourAccountPage = await CreateYourAccountPage.Expect( driver );
return await createYourAccountPage.enterAccountDetailsAndSubmit(
emailAddress,
userName,
passwordForTestAccounts
);
} );

step( 'Can see the "Site Type" page, and enter some site information', async function() {
const siteTypePage = await SiteTypePage.Expect( driver );
await siteTypePage.selectBlogType();
Expand Down Expand Up @@ -1706,6 +1697,15 @@ describe( `[${ host }] Sign Up (${ screenSize }, ${ locale })`, function() {
return await pickAPlanPage.selectFreePlan();
} );

step( 'Can see the account page and enter account details', async function() {
const createYourAccountPage = await CreateYourAccountPage.Expect( driver );
return await createYourAccountPage.enterAccountDetailsAndSubmit(
emailAddress,
userName,
passwordForTestAccounts
);
} );

sharedSteps.canSeeTheSitePreview();

after( 'Can delete our newly created account', async function() {
Expand Down