fix: add message about third-party cookies (#45672)

This commit is contained in:
Tom
2022-04-13 10:26:16 -05:00
committed by GitHub
parent 9ea7018740
commit e0a5fcdb8e
5 changed files with 14 additions and 5 deletions

View File

@ -7,6 +7,7 @@ describe('User token widget on settings page,', function () {
});
it('should not render', function () {
// make sure 'Danger Zone' is there so we know the page has rendered
cy.contains('Danger Zone');
cy.get('.user-token').should('not.exist');
});
@ -19,18 +20,19 @@ describe('User token widget on settings page,', function () {
cy.visit(
'/learn/relational-database/learn-bash-by-building-a-boilerplate/build-a-boilerplate'
);
cy.contains('Click here to start the course').click();
cy.get('[data-cy=start-codeally]').click();
cy.wait(2000);
cy.visit('/settings');
});
it('should render', function () {
// make sure 'Danger Zone' is there so we know the page has rendered
cy.contains('Danger Zone');
cy.get('.user-token').should('have.length', 1);
});
it('should allow you to delete your token', function () {
cy.contains('Delete my user token').click();
cy.get('[data-cy=delete-user-token]').click();
cy.contains('Your user token has been deleted.');
});
});