Pro Subscriptions and pricing table
Scenario: user navigates through tabs of pricing table Given user sees pricing table When he clicks monthly pricing Then he should see: 4.99/month - starter, 11.99/month - pro, 49.99/month - business And when he click yearly pricing Then he should see: 4.49/month (save 5.98$) - starter, 10.79/month (save 14.38$) - pro, 49.99/month (save 49.98$) - business And when he click biennially pricing Then he should see: 3.99/month (save 23.95$) - starter, 9.59/month (save 56.55$) - pro, 39.99/month (save 239.95$) - business
Scenario: user upgrades plugin to monthly/yearly/biennialy plan Given user chose localDev plugin When user clicks monthly pricing and selects "Starter plan" (premium) Then he should see checkout details: 4.99/53.89/95.80 $ due, no promo/$-5.98/$-23.95 of promo discount When user filled card details and submitted form Then he is charged 4.99/53.89/95.80 $
Scenario: user have a discount Given user has discount "50% of all upgrades for 1 year" When he visits pricing table for localDev plugin Then user should see 50% off badge for yearly pricing When user selects starter plan Then he sees promotional discount $-29.94 and due $29.94 When user fills card form and submits Then new pro subscription created with price $59.88 and promo_price of $29.94 and promo_end should be 1 year from now And user should be charged $29.94 Then on 2nd year user should be charged $59.88