[00:00:05] but it speeds up tests across the board, those that log in anyway [00:00:16] it's purely for optimization [00:00:20] I see [00:00:33] But wait, I have other api things I do with a different user [00:00:45] what you've proposed (doing all the precondition stuff for "user a" then driving the browser with "user b") makes the most sense [00:00:46] so I should make sure I'm logged in as the user I intend before I do anything in the api no? [00:01:08] marxarelli, yes, but 'mark all as read' is something user b must do to itself. [00:01:21] or you can wrap the api calls ala `as_user { api... }` [00:01:36] everything evaluated in the scope of the block will be for that explicit user [00:01:44] `as_user(:b) { ... }`, sorry [00:01:46] wait, you said that's not available just yet? or yes.. [00:02:00] that's available [00:02:15] just not the logging in of the _browser_ session via the api [00:02:49] oh, right, no that's clear [00:03:07] wait, so def create_page_with_user(title, text, username) [00:03:07] as_user(username) [00:03:07] api.create_page title, text [00:03:07] end [00:03:07] end [00:03:14] ^^ that will work without logging into the api ? [00:03:27] cool. i couldn't very well be 100% incoherent [00:03:33] running on only 4 hours sleep [00:03:36] :) [00:03:41] ha! go sleep :) [00:03:43] *could* very well [00:04:26] mooeypoo: almost. you shouldn't specify the exact username but an id that corresponds to a user in your environments.yml file [00:05:14] that way it's environment independent [00:05:46] check out the "Overview" of Environment (https://doc.wikimedia.org/rubygems/mediawiki-selenium/MediawikiSelenium/Environment.html) [00:06:06] there should be a section in the top-level README as well [00:15:45] marxarelli, as_user looks really nice. [00:16:26] matt_flaschen: thanks. i tried to make it intuitive [00:16:42] as much as it can be :) [00:17:42] marxarelli: hi [00:17:58] one of these days i'll find someone to experiment with https://phabricator.wikimedia.org/T108273#1520544 which i think will help make things much clearer! [00:18:07] d3r1ck: howdy [00:19:26] marxarelli: whats up? [00:19:39] marxarelli: itss been long we discussed :) [00:24:18] marxarelli, hm so my "spam my main user with notifications" user should be defined in my environment.yml file..? [00:26:32] mooeypoo: yep [00:27:58] i need to make the configuration a little less awkward but as of now if you do `mediawiki_user_b: Selenium_user_a` for example, you can refer to it as `user(:b)` in your tests [00:28:03] or `as_user(:b)` [00:28:39] mooeypoo: i saw something about WikiMedia summit [00:28:39] similarly `mediawiki_user_secondary: Some name` would be referred to as `user(:secondary)` or `as_user(:secondary)` in tests [00:29:17] mooeypoo: i have to run actually but we can pair on it on Monday if you want [00:29:20] i'll be in the office [00:32:28] marxarelli, yes, I may take you up on that [00:32:30] have a great weekend! [00:32:44] mooeypoo: thanks! you too [00:33:05] d3r1ck, yep, it's in SF [00:36:11] mooeypoo: can i participate? [00:36:17] mooeypoo: can i be part of it? [00:44:49] d3r1ck: You'll be able to apply, but I don't think applications are open yet [00:44:51] * RoanKattouw looks it up [00:46:23] d3r1ck: Oh it is open already: https://www.mediawiki.org/wiki/Wikimedia_Developer_Summit_2016 [01:20:31] (03CR) 10Catrope: [C: 031] Ignore null edits for topic title, post, description, and summary [extensions/Flow] - 10https://gerrit.wikimedia.org/r/241142 (https://phabricator.wikimedia.org/T60975) (owner: 10Sbisson) [02:04:00] [14:30:57] hm legoktm do we have an API way to add a notification to a user ? <-- no, just trigger things like user rights changes or thanks. I personally prefer thanks. [02:53:10] 6Collaboration-Team-Backlog, 10Flow: 'wgTitle' and 'wgPageName' are null on history of Flow pages - https://phabricator.wikimedia.org/T113833#1677127 (10Legoktm) 3NEW [11:04:33] 6Collaboration-Team-Backlog, 10Browser-Tests, 10Continuous-Integration-Infrastructure, 10MediaWiki-extensions-GettingStarted, and 2 others: Pass MEDIAWIKI_CAPTCHA_BYPASS_PASSWORD in on Jenkins so GettingStarted browser tests pass - https://phabricator.wikimedia.org/T91220#1677318 (10zeljkofilipin) [23:23:08] (03PS1) 10Florianschmidtwelzow: Use the new module name for eventlogging module [extensions/Thanks] - 10https://gerrit.wikimedia.org/r/241480 (https://phabricator.wikimedia.org/T113289) [23:25:22] (03CR) 10jenkins-bot: [V: 04-1] Use the new module name for eventlogging module [extensions/Thanks] - 10https://gerrit.wikimedia.org/r/241480 (https://phabricator.wikimedia.org/T113289) (owner: 10Florianschmidtwelzow)