bokchoy tests for move xblocks#14465
Conversation
3d96ddf to
0c90007
Compare
2149952 to
486bcde
Compare
0c90007 to
0f5423a
Compare
486bcde to
99a3416
Compare
0f5423a to
dd5b9a9
Compare
c4c0d45 to
cda669e
Compare
c46e0ce to
1a06373
Compare
|
@muhammad-ammar Can you ask for assistance someone from test engineering about the a11y test failure. |
| ) | ||
| ) | ||
|
|
||
| def verify_move_opertions(self, operation, component_display_names_after_operation): |
| component_display_names_after_operation=['HTML 11', 'HTML 12'] | ||
| ) | ||
|
|
||
| def test_a11y(self): |
There was a problem hiding this comment.
@jzoldak @benpatterson If i decorate this test with attr('a11y') then this test fails always due to same failure reason. From the screenshot it looks like that outline page never finishes loading but i am unable to understand the reason of failure. Test passes without attr('a11y'). Also test passes on devstack with attr('a11y').
Any idea why the tests fails with attr('a11y') on jenkins?
6662ee7 to
6044928
Compare
|
jenkins run python |
|
@muhammad-ammar have you tried to reproduce locally? There was a point in which a11y tests were run through phantomjs instead of firefox. I honestly don't remember if that's what the configuration is now, though. You'd have to dig around pavelib (most likely) to determine that. |
|
(or, it'll be obvious if you attempt to reproduce locally and you have x11 forwarding enabled) |
|
@benpatterson Do i need to run the test using phantomjs? If yes then how the x11 forwarding will help because phantomjs is headless browser. |
|
@muhammad-ammar I only mention that because with phantomjs you'd see no window whereas with firefox, you would. It would be a proxy for confirming that it's running on phantomjs if you don't want to look at code. But...it sounds like you've confirmed it's on firefox, so: great. I couldn't answer your question at this point, then, without a closer look at the code. I would guess it's a flaky condition. You may want to ping Raees or Muddasser to help you isolate the problem. |
64c779a to
968207e
Compare
6044928 to
270c256
Compare
270c256 to
79adfa5
Compare
| unit_page.a11y_audit.config.set_rules({ | ||
| 'ignore': [ | ||
| 'color-contrast', | ||
| 'link-href', |
There was a problem hiding this comment.
@mushtaqak can we add ticket references with these ignore rules ?
| ), | ||
| ], | ||
| }, | ||
| }) |
There was a problem hiding this comment.
@mushtaqak Let's move these settings in setup.
|
|
||
| # Add split test to unit_page1 and assign newly created group configuration to it | ||
| split_test = XBlockFixtureDesc('split_test', 'Test Content Experiment', metadata={'user_partition_id': 0}) | ||
| self.course_fixture.create_xblock(self.unit_page1.locator, split_test) |
There was a problem hiding this comment.
I would move this in setup where we're add other fixtures.
There was a problem hiding this comment.
We are only using split_test in this test, so I don't think we should add it to all other tests
| When I go to unit page in second section | ||
| Then I see moved component there | ||
| When I undo move a component | ||
| Then I verified that undo move operation is successful |
There was a problem hiding this comment.
Given that I am a staff user
And I go to content experiment page
And I open the move dialogue modal
When I navigate to the unit in second section
Then I see move button is enabled
And when I click on the move button
Then I see move operation success message
And when I click on take me there link
Then I see moved component there
| When I go to unit page in second section | ||
| Then I see moved component there | ||
| When I undo move a component | ||
| Then I verified that undo move operation is successful |
There was a problem hiding this comment.
@mushtaqak How you're doing move and then undo move after take me there link ?
There was a problem hiding this comment.
@muzaffaryousaf we are doing move initially and then checking confirmation message, if it is only move operation, we are checking take me there link otherwise we do undo move and check it's confirmation as well.
|
|
||
| def _loading_spinner_hidden(): | ||
| """ promise function to check loading spinner state """ | ||
| is_spinner_hidden = self.q(css='div.ui-loading.is-hidden').present |
There was a problem hiding this comment.
present because we are checking if the element has this class or not
There was a problem hiding this comment.
Are we not checking for visibility of loader ?
There was a problem hiding this comment.
yes based on it's is-hidden class.
FYI @muhammad-ammar
| """ | ||
| click_css(self, '#page-alert .alert.confirmation .nav-actions .action-primary') | ||
|
|
||
| def click_take_me_link(self): |
| component_display_names_after_operation | ||
| ) | ||
|
|
||
| def test_move(self): |
There was a problem hiding this comment.
test_move_component_successfully or test_move_successfully
| Then I click on the move button | ||
| Then I see move operation successful message | ||
| When I go to unit page in second section | ||
| Then I see moved component there |
There was a problem hiding this comment.
Given I am a staff user
And I go to unit page in first section
And I open the move modal
And I navigate to unit in second section
And I see move button is enabled
When I click on the move button
Then I see move operation success message
And When I click on take me there link
Then I see moved component there.
| Then I click on the move button | ||
| Then I see move operation successful message | ||
| When I clicked on undo move link | ||
| Then I verified that undo move operation is successful |
There was a problem hiding this comment.
Change this one too. Just like others.
| def test_a11y(self): | ||
| """ | ||
| Verify move modal a11y. | ||
| """ |
|
👍 Except few nits. |
58527d1 to
f13fc59
Compare
965c31f to
93439b2
Compare
f13fc59 to
ddf809e
Compare
93439b2 to
485ffb1
Compare
ddf809e to
83de1eb
Compare
No description provided.