chore: remove verify-can-claim-cert logic (#44574)

* chore: remove verify-can-claim-cert logic

* remove extraneous

* remove console log before Nich wakes up

* add api route back with flash

* remove unnecessary logic in completion-epic

* change tests for new layout

* dynamically use api location

* rename file

* fix Cypress api location

* fix(test): anchor does not have disabled class

* fix(tests): change js test to claim from /settings

* chore: change status to 410 (gone)

* update testing again

* oliver is nitpicky

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* make oliver happy

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
Shaun Hamilton
2022-01-18 16:52:49 +02:00
committed by GitHub
parent 9672c92a19
commit 9cb87d0257
12 changed files with 72 additions and 491 deletions

View File

@ -78,7 +78,8 @@ describe('project submission', () => {
// We need to wait for everything to finish loading and hydrating, so we
// use this text as a proxy for that.
const textInNextPage = projectTitles.slice(1);
textInNextPage.push('Claim Your Certification');
// The following text exists on the donation modal
textInNextPage.push('Nicely done');
projectsInOrder.forEach(
({ block, superBlock, dashedName, solutions }, i) => {
@ -118,8 +119,10 @@ describe('project submission', () => {
// Claim and view solutions on certification page
cy.toggleAll();
cy.visit('/learn/javascript-algorithms-and-data-structures');
cy.contains('Claim Certification').click();
cy.visit('/settings');
cy.get(
`a[href="/certification/developmentuser/${projectsInOrder[0]?.superBlock}"]`
).click();
cy.contains('Show Certification').click();
projectTitles.forEach(title => {