/
githubmirror
/
oppia
Обзор
Документация
Войти
/
githubmirror
/
oppia
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
extensions/rich_text_components/webdriverio.js
45 строк
2 KB
Mohit Ruwatia
[GSoC 2025] M2.1 - Fix part of #19851: Created Workedexample rich text editor component (#22964)
25 июл 2025, 07:30
Не верифицирован
25 июл 2025, 07:30
36e8419
Код
Авторство
О чём код?
// Copyright 2022 The Oppia Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS-IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /** * @fileoverview Clearing-house for rich-text-component utilities for * webdriverio tests. */ // NOTE to devs: If this constant is renamed, make sure to edit // components_test.ComponentE2eTests.test_component_e2e_tests to search for the // correct constant name. // NOTE: The Workedexample line imports a dummy file that will be // deleted once e2e tests are no longer in use. var RICH_TEXT_COMPONENTS = { Collapsible: require('./Collapsible/webdriverio.js'), Image: require('./Image/webdriverio.js'), Link: require('./Link/webdriverio.js'), Math: require('./Math/webdriverio.js'), Skillreview: require('./Skillreview/webdriverio.js'), Tabs: require('./Tabs/webdriverio.js'), Video: require('./Video/webdriverio.js'), Workedexample: require('./Workedexample/webdriverio.js') }; var getComponent = function(componentName) { if (RICH_TEXT_COMPONENTS.hasOwnProperty(componentName)) { return RICH_TEXT_COMPONENTS[componentName]; } else { throw new Error('Unknown rich-text component: ' + componentName); } }; exports.RICH_TEXT_COMPONENTS = RICH_TEXT_COMPONENTS; exports.getComponent = getComponent;