Skip to content

Commit 1679d0c

Browse files
Merge pull request #13925 from rabbitmq/bump-up-chromedriver
Bump up chrome driver
2 parents 6e0ba8e + a028db8 commit 1679d0c

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

selenium/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@ suites/authnz-mgt/oauth-with-uaa.sh test happy-login.js
168168
been implemented yet.
169169

170170

171+
If your test requires two RabbitMQ servers, typically required when testing WSR or shovels or federation,
172+
you can run the second server, a.k.a. `downstream`, as follows:
173+
```
174+
suites/<yoursuite>.sh start-other-rabbitmq
175+
```
176+
171177
## Test case configuration
172178

173179
RabbitMQ and other components such as UAA, or Keycloak, require configuration files which varies

selenium/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"author": "",
1313
"license": "ISC",
1414
"dependencies": {
15-
"chromedriver": "^134.0",
15+
"chromedriver": "^135.0",
1616
"ejs": "^3.1.8",
1717
"express": "^4.18.2",
1818
"geckodriver": "^3.0.2",

selenium/test/connections/amqp10/sessions-for-monitoring-user.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { By, Key, until, Builder } = require('selenium-webdriver')
22
require('chromedriver')
33
const assert = require('assert')
44
const { open: openAmqp, once: onceAmqp, on: onAmqp, close: closeAmqp } = require('../../amqp')
5-
const { buildDriver, goToHome, captureScreensFor, teardown, delay } = require('../../utils')
5+
const { buildDriver, goToHome, captureScreensFor, teardown, delay, doWhile } = require('../../utils')
66

77
const LoginPage = require('../../pageobjects/LoginPage')
88
const OverviewPage = require('../../pageobjects/OverviewPage')
@@ -98,7 +98,8 @@ describe('Given an amqp10 connection opened, listed and clicked on it', function
9898
assert.equal(2, receivedAmqpMessageCount)
9999

100100
await delay(5*1000) // wait until page refreshes
101-
let sessions = await connectionPage.getSessions()
101+
let sessions = await doWhile(function() { return connectionPage.getSessions() },
102+
function(obj) { return obj != undefined })
102103
let incomingLink = connectionPage.getIncomingLinkInfo(sessions.incoming_links, 0)
103104
assert.equal(2, incomingLink.deliveryCount)
104105

selenium/test/pageobjects/ConnectionPage.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const { By, Key, until, Builder } = require('selenium-webdriver')
33
const BasePage = require('./BasePage')
44

55

6-
const OVERVIEW_SECTION = By.css('div#main div.section#connection-overview-section')
76
const SESSIONS_SECTION = By.css('div#main div.section#connection-sessions-section')
87
const SESSIONS_TABLE = By.css('div.section#connection-sessions-section table.list#sessions')
98
const INCOMING_LINKS_TABLE = By.css('div.section#connection-sessions-section table.list#incoming-links')

0 commit comments

Comments
 (0)