Skip to content

Commit

Permalink
fix deprecation warnings in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Oct 12, 2024
1 parent f0e8356 commit 13e5f48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function testPencil(browser) {
return browser.assert
.titleContains("WBO")
.click(".tool[title ~= Crayon]") // pencil
.assert.cssClassPresent(".tool[title ~= Crayon]", ["curTool"])
.assert.hasClass(".tool[title ~= Crayon]", "curTool")
.executeAsync(async function (done) {
function sleep(t) {
return new Promise(function (accept) {
Expand Down Expand Up @@ -100,7 +100,7 @@ function testCircle(browser) {
)
.click("#toolID-Ellipse") // Click the ellipse tool
.click("#toolID-Ellipse") // Click again to toggle
.assert.containsText("#toolID-Ellipse .tool-name", "Cercle"); // Circle in french
.assert.textContains("#toolID-Ellipse .tool-name", "Cercle"); // Circle in french
}

function testCursor(browser) {
Expand All @@ -127,7 +127,7 @@ function testCollaborativeness(browser) {
.url(boardUrl)
.waitForElementVisible(".tool[title ~= Pencil]")
.click(".tool[title ~= Pencil]")
.assert.cssClassPresent(".tool[title ~= Pencil]", ["curTool"])
.assert.hasClass(".tool[title ~= Pencil]", "curTool")
.window.open()
.window.getAllHandles(function (result) {
const handles = result.value;
Expand Down

0 comments on commit 13e5f48

Please sign in to comment.