Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
Assertion fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lholota committed Jun 5, 2023
1 parent a454219 commit 6da737c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nightwatch/assertions/isAadPermissionRejectedPage.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const isAadErrorPage = require("./isAadErrorPage")

const reusable = function (context) {
isAadErrorPage.reusable("AADSTS50105", context)
isAadErrorPage.reusable(context, "AADSTS50105")
}

const assertion = function () {
Expand Down
6 changes: 5 additions & 1 deletion nightwatch/assertions/isPermissionRejectedPage.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
const isAadPermissionRejectedPage = require("./isAadPermissionRejectedPage")
const isCloudflarePermissionRejectedPage = require("./isCloudflarePermissionRejectedPage")

exports.assertion = function () {
const assertion = function () {
if (this.__nightwatchInstance.settings.globals.isRemote) {
isCloudflarePermissionRejectedPage.reusable(this)
} else {
isAadPermissionRejectedPage.reusable(this)
}
}

module.exports = {
assertion
}

0 comments on commit 6da737c

Please sign in to comment.