diff --git a/cypress.config.js b/cypress.config.js index 04ebc494..d93eac9e 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -13,6 +13,6 @@ module.exports = defineConfig({ openMode: 0, }, e2e: { - baseUrl: "http://pyp:8000", + baseUrl: "http://test_site_ui:8000", }, }); diff --git a/cypress/e2e/course_creation.cy.js b/cypress/e2e/course_creation.cy.js index 142b2f13..33f6eee9 100644 --- a/cypress/e2e/course_creation.cy.js +++ b/cypress/e2e/course_creation.cy.js @@ -108,14 +108,11 @@ describe("Course Creation", () => { cy.get("[id^=headlessui-disclosure-panel-").within(() => { cy.get("div").contains("Test Lesson").click(); }); - cy.wait(1000); + cy.wait(3000); // View Lesson cy.url().should("include", "/learn/1-1"); cy.get("div").contains("Test Lesson"); - cy.get("div").contains( - "This is an extremely big paragraph that is meant to test the UI. This is a very long paragraph. It contains more than once sentence. Its meant to be this long as this is a UI test. Its unbearably long and I'm not sure why I'm typing this much. I'm just going to keep typing until I feel like its long enough. I think its long enough now. I'm going to stop typing now. " - ); cy.get("video") .should("be.visible") @@ -123,6 +120,10 @@ describe("Course Creation", () => { .invoke("attr", "src") .should("include", "/files/Youtube"); + cy.get("div").contains( + "This is an extremely big paragraph that is meant to test the UI. This is a very long paragraph. It contains more than once sentence. Its meant to be this long as this is a UI test. Its unbearably long and I'm not sure why I'm typing this much. I'm just going to keep typing until I feel like its long enough. I think its long enough now. I'm going to stop typing now." + ); + // Add Discussion cy.button("New Question").click(); cy.wait(500); diff --git a/frontend/src/components/AudioBlock.vue b/frontend/src/components/AudioBlock.vue new file mode 100644 index 00000000..36303b7f --- /dev/null +++ b/frontend/src/components/AudioBlock.vue @@ -0,0 +1,137 @@ + + + + diff --git a/frontend/src/components/BatchCard.vue b/frontend/src/components/BatchCard.vue index 3dbe647e..65b3ae16 100644 --- a/frontend/src/components/BatchCard.vue +++ b/frontend/src/components/BatchCard.vue @@ -36,19 +36,25 @@ :endDate="batch.end_date" class="mb-3" /> -
+
{{ formatTime(batch.start_time) }} - {{ formatTime(batch.end_time) }}
+
+ + + {{ batch.timezone }} + +
+ + diff --git a/frontend/src/pages/Batch.vue b/frontend/src/pages/Batch.vue index 650b3f47..b9868a2c 100644 --- a/frontend/src/pages/Batch.vue +++ b/frontend/src/pages/Batch.vue @@ -87,13 +87,19 @@ :endDate="batch.data.end_date" class="mb-3" /> -
+
{{ formatTime(batch.data.start_time) }} - {{ formatTime(batch.data.end_time) }}
+
+ + + {{ batch.data.timezone }} + +
-
+
{{ __('Details') }}
-
+
- -
-
+
+
-
+
{{ __('Meta Image') }}
@@ -74,10 +68,21 @@ />
+
-
+
+
-
+
- {{ __('Settings') }} + {{ __('Date and Time') }}
@@ -109,6 +114,8 @@ type="date" class="mb-4" /> +
+
+
+
+
+
+
+ {{ __('Settings') }} +
+
+
+
- - - - - -
-
-

{{ meta.title }}

-

- {{ meta.description }} -

-

- The content here is just for seo purposes. The actual content will be loaded in a few seconds. -

-

- Seo checks if a page has more than 300 words. So, here are some more words to make it more than 300 words. - Page descriptions are the HTML meta tags that provide a brief summary of a web page. - Search engines use meta descriptions to help identify the page's topic - they don't use them to rank the page, but they do use them to determine whether or not to display the page in search results. - Meta descriptions are important because they're often the first thing people see when they're deciding which search result to click on. - They're also important because they can help improve your click-through rate (CTR) from search results. - A good meta description can entice people to click on your page instead of someone else's. -

- Know More -
-
-
-
- - - - diff --git a/lms/www/lms.py b/lms/www/lms.py index 4f92c88f..6a75ce06 100644 --- a/lms/www/lms.py +++ b/lms/www/lms.py @@ -82,6 +82,14 @@ def get_meta(app_path): if re.match(r"^batches/.*$", app_path): batch_name = app_path.split("/")[1] + if "new/edit" in app_path: + return { + "title": _("New Batch"), + "image": frappe.db.get_single_value("Website Settings", "banner_image"), + "description": "Create a new batch", + "keywords": "New Batch, Create Batch", + "link": "/lms/batches/new/edit", + } batch = frappe.db.get_value( "LMS Batch", batch_name,