mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #59238
[Bug 1889020] Re: Behat fainling tests when trying to add blocks on pages
I think the issue may also be due to the adding of a block to a page
includes some ajax/js which may finish executing after behat goes into
it's next step.
So this is happening in behat:
1) adds placeholder block to page
2) selects what type of bock it will be
- on click kicks off ajax to fetch the config for the block
3) next behat step updates form fields including title
- the ajax finally finishes and part of that is to update the block title to the title that existed in step 1, which is 'Placeholder'
4) the block config is saved - but with the old and not the new title
I believe we need to make sure step 2 has fully finished before doing
step three
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1889020
Title:
Behat fainling tests when trying to add blocks on pages
Status in Mahara:
New
Bug description:
There are a few behat tests that fail, so far I've seen
edit_default_template_pages.feature
group_view_block.feature
shared_with_group.feature
They try to add a block but the modal is never opened and then the
tests fails trying to select a blocktype from a modal that is not
visible.
By looking into the Betwork tab of the browser while running the
tests, I could see that there are too many calls to
view/blocks.json.php taking a long time to run. This could be delaying
the modal load, but we would need to look into this a bit more.
The calls have parameters like
id: 2
change: 1
action_moveblockinstance_id_6_newx_0_newy_0_newheight_8_newwidth_6: true
so they're just trying to resize or move the blocks inside the page.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1889020/+subscriptions
References