Mga usapan na sinimulan ni Itamar Tzadok

Moodle in English -> Testing and QA -> Running tests on mac sierra

ni Itamar Tzadok -

Can someone advise a configuration of the testing environment on mac sierra with chrome?

I can't get it to work. Maybe too recent versions of browser and selenium just don't work. Or maybe I just don't configure it properly for mac. So far selenium starts, then when running behat, firefox launches, hangs for a few seconds and closes. The selenium terminal shows "plugin-container[27987:4190398] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x8f3b, name = 'com.apple.tsm.portname'".

Any advice would be greatly appreciated. ngiti

Average of ratings: -

Moodle in English -> Themes -> Cleaner theme

ni Itamar Tzadok -

I like the clean theme. It's clean. The more theme is still clean (after removing the background image) and allows configuring colors and as such also quite nice. But there are still three things that I find annoying: the navigation block, the administration block, and the "Add a block" block on side-pre even if I move all other blocks to side-post. So I've drafted a simple theme, derived from more. I call this theme "cleaner". It "fixes" those three things with a few simple modifications.

First, I made side-post the default region in the theme's config. IMO it creates a cleaner and more intuitive look. I had to override columns2 layout because it was hardcodedly laid out with side-pre.

Second, I set the theme to omit the administration and navigation blocks in browse mode, and show them only when editing. This required overriding the block_manager. It also required adding to the theme's core_renderer (which extends the clean's one) the header method in order to add the editing button to the front page.

One of the nicest effects of the latter is that in pages where I don't add any blocks the main region stretches all over the page. It's just cleaner that way.

That's it. If anyone is interested I can push the code to git sooner than later.

ngiti
Average of ratings:Useful (3)

The behat.yml in 2.8 lists under features the root features folder in each plugin and in runtime all features are executed including those in sub folders. In 2.9 it lists particular features but only from the root features folder and only those features are executed. Adding the root features folder to the behat.yml fixes that but only until the next initialization. Bug? Known? Or am I missing something?

ngiti

Average of ratings: -

A new plugin Availability dataformcontent allows teachers to restrict user access to an activity or section based on content of a designated Dataform instance in the course. The plugin requires the Dataform module plugin. Version for 2.8 awaiting approval in Moodle plugins repo, but already available from git at https://github.com/itamart/moodle-availability_dataformcontent/releases/tag/v2.8.0.

For a related discussion down this forum see Allocate resources/activities to individual students.

Please note: this plugin requires the Dataform module plugin which is available from Moodle plugins repo and from git.

Hope this plugin helps anyone. Feel free to feed back. ngiti

Average of ratings:Useful (2)