Skip to content
Extraits de code Groupes Projets
Valider 1e550773 rédigé par Matthieu Aubry's avatar Matthieu Aubry
Parcourir les fichiers

Merge pull request #8921 from piwik/segment_editor_ui_tests

Segment editor ui tests
parents a678ae0d 395485aa
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Subproject commit acb60ce853ad04fcc6e58436173497cbf39eee70 Subproject commit 226ef830c369abf63bea6d350c7598fc3e8662e3
...@@ -86,13 +86,13 @@ describe("SegmentSelectorEditorTest", function () { ...@@ -86,13 +86,13 @@ describe("SegmentSelectorEditorTest", function () {
it("should add an OR condition when a segment dimension is dragged to the OR placeholder section", function (done) { it("should add an OR condition when a segment dimension is dragged to the OR placeholder section", function (done) {
expect.screenshot("drag_or_condition").to.be.captureSelector(selectorsToCapture, function (page) { expect.screenshot("drag_or_condition").to.be.captureSelector(selectorsToCapture, function (page) {
page.dragDrop('.segmentEditorPanel li[data-metric=entryPageTitle]', '.segmentEditorPanel .segment-add-or .ui-droppable'); page.dragDrop('.segmentEditorPanel li[data-metric=outlinkUrl]', '.segmentEditorPanel .segment-add-or .ui-droppable');
}, done); }, done);
}); });
it("should add an AND condition when a segment dimension is dragged to the AND placeholder section", function (done) { it("should add an AND condition when a segment dimension is dragged to the AND placeholder section", function (done) {
expect.screenshot("drag_and_condition").to.be.captureSelector(selectorsToCapture, function (page) { expect.screenshot("drag_and_condition").to.be.captureSelector(selectorsToCapture, function (page) {
page.dragDrop('.segmentEditorPanel li[data-metric=pageTitle]', '.segmentEditorPanel .segment-add-row .ui-droppable'); page.dragDrop('.segmentEditorPanel li[data-metric=outlinkUrl]', '.segmentEditorPanel .segment-add-row .ui-droppable');
}, done); }, done);
}); });
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter