feat: enable TOP for mobile app (#55200)

pull/54824/head^2
Niraj Nandish 2024-06-19 12:21:52 +05:30 committed by GitHub
parent 32fbef544c
commit 12280fa02c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 4 deletions

View File

@ -31,13 +31,13 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Setup Flutter 3.19.x
- name: Setup Flutter 3.22.x
uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225 # v2
with:
flutter-version: '3.19.x'
flutter-version: '3.22.x'
channel: 'stable'
cache: true
cache-key: flutter-3.19.x
cache-key: flutter-3.22.x
cache-path: ${{ runner.tool_cache }}/flutter
- name: Set freeCodeCamp Environment Variables

View File

@ -11,6 +11,7 @@ interface Curriculum {
id: string;
title: string;
block: string;
challengeType: number;
}[];
meta: {
name: string;
@ -39,6 +40,11 @@ test.describe('Test challenges in mobile', () => {
)) {
test.describe(`SuperBlock: ${superBlock} - Block: ${currBlock['meta']['name']}`, () => {
for (const currChallenge of currBlock['challenges']) {
// Skip non-editor challenges
if (![0, 1, 5, 6, 14].includes(currChallenge['challengeType'])) {
continue;
}
test(`Challenge: ${currChallenge['title']}(${currChallenge['id']})`, async ({
page
}) => {

View File

@ -39,7 +39,7 @@ export const orderedSuperBlockInfo = [
{ dashedName: SuperBlocks.MachineLearningPy, public: true },
{ dashedName: SuperBlocks.RespWebDesign, public: true },
{ dashedName: SuperBlocks.PythonForEverybody, public: true },
{ dashedName: SuperBlocks.TheOdinProject, public: false },
{ dashedName: SuperBlocks.TheOdinProject, public: true },
{ dashedName: SuperBlocks.JsAlgoDataStructNew, public: false },
{ dashedName: SuperBlocks.FrontEndDevLibs, public: false },
{ dashedName: SuperBlocks.DataVis, public: false },