Skip to content

Commit

Permalink
fix history tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vxsx committed Apr 1, 2016
1 parent 77cab91 commit 2c8fd6c
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions cms/tests/frontend/integration/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,6 @@ casper.test.begin('History', function (test) {
})
.waitForResource(/undo/)
.wait(1500)
.waitForSelector('.cms-toolbar-expanded', function () {
// Clicking again on undo after resource have been loaded
this.click(
// mouse clicks on the History link
xPath('//a[.//span[text()[contains(.,"History")]]]')
);
})
.wait(10, function () {
this.click(
// mouse clicks on the Undo link
xPath('//a[.//span[text()[contains(.,"Undo")]]]')
);
})
.waitForResource(/undo/)
.wait(1500)
.waitForSelector('.cms-toolbar-expanded', function () {
// Counts plugins in the first placeholder if there's only one
test.assertElementCount(
Expand All @@ -99,21 +84,6 @@ casper.test.begin('History', function (test) {
// Clicking again on redo after resource have been loaded
.waitForResource(/redo/)
.wait(1000)
.waitForSelector('.cms-toolbar-expanded', function () {
this.click(
// mouse clicks on the History link
xPath('//a[.//span[text()[contains(.,"History")]]]')
);
})
.wait(10, function () {
this.click(
// mouse clicks on the redo link
xPath('//a[.//span[text()[contains(.,"Redo")]]]')
);
})
// Counts if there are two plugin in the first placeholder
.waitForResource(/redo/)
.wait(1500)
.waitForSelector('.cms-toolbar-expanded', function () {
test.assertElementCount(
'.cms-dragarea:nth-child(1) > .cms-draggables > .cms-draggable',
Expand Down

0 comments on commit 2c8fd6c

Please sign in to comment.