-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
062f8c6
commit dd5bc8c
Showing
5 changed files
with
37 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ module.exports = (request, response, url) => { | |
'WWW-Authenticate': 'Basic realm=""' | ||
}) | ||
response.end() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
sap.ui.define( | ||
["sap/ui/core/mvc/Controller", "sap/m/MessageToast"], | ||
['sap/ui/core/mvc/Controller', 'sap/m/MessageToast'], | ||
function (Controller, MessageToast) { | ||
"use strict"; | ||
'use strict' | ||
|
||
return Controller.extend("auth.sample.js.App", { | ||
return Controller.extend('auth.sample.js.App', { | ||
onInit: function () {}, | ||
|
||
onPress: function () { | ||
MessageToast.show("Hello World!"); | ||
}, | ||
}); | ||
MessageToast.show('Hello World!') | ||
} | ||
}) | ||
} | ||
); | ||
) |
22 changes: 11 additions & 11 deletions
22
test/auth_sample.js/webapp/test/integration/HelloJourney.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
sap.ui.define(["sap/ui/test/opaQunit", "./pages/Main"], function () { | ||
"use strict"; | ||
sap.ui.define(['sap/ui/test/opaQunit', './pages/Main'], function () { | ||
'use strict' | ||
|
||
QUnit.module("Sample Basic Auth Journey"); | ||
QUnit.module('Sample Basic Auth Journey') | ||
|
||
opaTest("Should test basic auth", function (Given, When, Then) { | ||
opaTest('Should test basic auth', function (Given, When, Then) { | ||
// Arrangements | ||
Given.iStartMyAppInAFrame({ | ||
source: "../../index.html", | ||
}); | ||
source: '../../index.html' | ||
}) | ||
|
||
// Actions | ||
When.onTheMainPage.iPressTheSayHelloButton(); | ||
When.onTheMainPage.iPressTheSayHelloButton() | ||
|
||
// Assertions | ||
Then.onTheMainPage.iShouldSeeTheHelloDialog(); | ||
Then.onTheMainPage.iShouldSeeTheHelloDialog() | ||
|
||
// Cleanup | ||
Then.iTeardownMyApp(); | ||
}); | ||
}); | ||
Then.iTeardownMyApp() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters