fix: web page and load time
This commit is contained in:
parent
afdf561140
commit
d49ce24e09
2 changed files with 5 additions and 5 deletions
|
|
@ -8,7 +8,7 @@ context('Discussions', () => {
|
|||
});
|
||||
|
||||
const reply_through_modal = () => {
|
||||
cy.visit('/test-page');
|
||||
cy.visit('/test-page-discussions');
|
||||
|
||||
// Open the modal
|
||||
cy.get('.reply').click();
|
||||
|
|
@ -26,7 +26,7 @@ context('Discussions', () => {
|
|||
|
||||
// Submit
|
||||
cy.get('.modal .submit-discussion').click();
|
||||
cy.wait(3000);
|
||||
cy.wait(20000);
|
||||
|
||||
// Check if discussion is added to page and content is visible
|
||||
cy.get('.sidebar-parent:first .discussion-topic-title').should('have.text', 'Discussion from tests');
|
||||
|
|
|
|||
|
|
@ -194,12 +194,12 @@ def create_form_tour():
|
|||
|
||||
@frappe.whitelist()
|
||||
def create_data_for_discussions():
|
||||
web_page = frappe.db.exists("Web Page", {"route": "test-page"})
|
||||
web_page = frappe.db.exists("Web Page", {"route": "test-page-discussions"})
|
||||
if not web_page:
|
||||
web_page = frappe.get_doc({
|
||||
"doctype": "Web Page",
|
||||
"title": "Test Page",
|
||||
"route": "test-page",
|
||||
"title": "Test page for discussions",
|
||||
"route": "test-page-discussions",
|
||||
"published": True
|
||||
})
|
||||
web_page.save()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue