From f55a4c48dbd649c08b3f3e64272d4e79b27d976b Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Fri, 3 Jun 2022 10:44:20 +0200 Subject: [PATCH] test: tighten up two more cypress tests (#46273) * test: tighten up user-token This should be faster and a little more reliable. before should have worked, but beforeEach seems more reliable, so I'm trying it. * test: use a single test for intro-page Should be more robust as well as a lot faster. --- client/src/components/settings/user-token.tsx | 2 +- .../templates/Challenges/codeally/show.tsx | 1 + .../learn/responsive-web-design/intro-page.js | 21 ++++++++----------- cypress/integration/settings/user-token.js | 17 +++++++-------- 4 files changed, 19 insertions(+), 22 deletions(-) diff --git a/client/src/components/settings/user-token.tsx b/client/src/components/settings/user-token.tsx index 6daf9bad7ce..a356decf882 100644 --- a/client/src/components/settings/user-token.tsx +++ b/client/src/components/settings/user-token.tsx @@ -29,7 +29,7 @@ class UserToken extends Component { const { t } = this.props; return ( -
+
{t('user-token.title')} diff --git a/client/src/templates/Challenges/codeally/show.tsx b/client/src/templates/Challenges/codeally/show.tsx index bcf84f1e3e9..1fc7b9fd0a0 100644 --- a/client/src/templates/Challenges/codeally/show.tsx +++ b/client/src/templates/Challenges/codeally/show.tsx @@ -236,6 +236,7 @@ class ShowCodeAlly extends Component {