-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: labels #272
Comments
BIG THXXXXXXXXXXXXXXXXXXX to @vladikoff
Issue #272 - Fix SOP violation in tests (session cookies will now work)
Started to write a test for this, not there yet. Just a head up. |
❤️ |
I'm testing with ISSUES_REPO_URI = os.environ.get('ISSUES_REPO_URI') or "miketaylr/nobody-look-at-this/issues" and define([
// './functional/index',
// './functional/comments',
// './functional/issue-list',
// './functional/issues',
// './functional/reporting',
// './functional/contributors',
// './functional/history-navigation',
'./functional/labels'
], function () {
'use strict';
}); to ease my pain. |
hmm it doesn't seem I get the 10 seconds |
ok managed to enter my credentials quick enough.
huh? <div class="Label-wrapper">
<span class="Label Label--title">Labels</span>
<span class="LabelEditor-wrapper">
<button class="LabelEditor-launcher wc-Icon wc-Icon--gear" aria-hidden="true"><span class="wc-sronly">Edit Labels</span></button>
</span>
<span class="Label-list">
</span>
</div> so .LabelEditor-launcher {
display: none;
border: medium none;
width: 1.3em;
height: 1.3em;
font-size: 1.4em;
padding: 0px;
opacity: 0.8;
} Weird. /me is heading to a recent issue. Same thing. Oh weird. Logged out and logged in again, and the gear is back. |
Ah gotcha… stupid me. Let's go to the next typo: <label class="LabelEditor-item">
<span class="LabelEditor-color" style="background-color:#cccccc">
<input class="LabelEditor-checkbox" name="duplicate" data-color="cccccc" type="checkbox">
</span>
<span class="LabelEditor-name">duplicate</span>
</label> Ah habits. I mixed up XPath syntax with CSS selectors. I'm more familiar with the former.
It is still not working. I wonder if it also depends on a specific version of labelnames. At least it's opening the thing as planned. And indeed it requires |
Encourage you to comment when you don’t want to run the full set of tests.
Putting in comment the rest. We will come back to it later.
Note that at the moment github has connectivity issues. |
I closed the previous pull request and created a new one. It's not complete but it's working and this is #666 for the code conspiracy theorists 😱 |
Coooooool. 🌟 |
ok. I need to adjust the setup with things discussed in #666 (comment) |
pull, merge, add, commit… and push
|
Can't crack this one yet. This is not working. Putting it here to not forget. 'Search filter is working': function () {
return this.remote
.setFindTimeout(intern.config.wc.pageLoadTimeout)
.get(require.toUrl(url(100)))
.findByCssSelector('.LabelEditor-launcher').click()
.end()
.findByCssSelector('.LabelEditor-search').click()
.type('duplicate')
.end()
.findByCssSelector('.LabelEditor-name')
.getVisibleText()
.then(function (text) {
assert.include(text, 'duplicate', 'Search filter reduces the list to what is typed');
})
.end();
} |
@miketaylr @tagawa @magsout Useful tip:
This |
@vladikoff do you know a way to have Because I'm trying to understand what I do wrong. return this.remote
.setFindTimeout(intern.config.wc.pageLoadTimeout)
.get(require.toUrl(url(100)))
.then(function (issuepage) {
var username_selector = 'body[data-username="'+intern.config.wc.user+'"]';
if (issuepage.findByCssSelector(username_selector)) {
// we are already logged
return issuepage;
} else {
// we are not logged
issuepage.badaboum;
return issuepage;
};
})
.findByCssSelector('.js-login-link').click()
.end()
.findByCssSelector('#login_field').click() But let's say I would like to say |
@karlcow Hey Karl, If you pass |
@vladikoff alleluiah! Thanks. Exactly what I wanted. big 😂 |
grmbl… grmbl… I guess I'll have to introduce a bit more delay.
|
The issue takes time too. Here I just did a reload. so everything is in cache. This is/should be the case for I wonder if the issue is on the python side. |
dependency on the previous test.
we need intern tests for:
(list modified by @karlcow on 2015-08-07)
The text was updated successfully, but these errors were encountered: