-
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
Showing
10 changed files
with
2,273 additions
and
2,288 deletions.
There are no files selected for viewing
2,884 changes: 1,442 additions & 1,442 deletions
2,884
frontend/benefit/handler/browser-tests/json/list-handling.json
Large diffs are not rendered by default.
Oops, something went wrong.
1,156 changes: 578 additions & 578 deletions
1,156
frontend/benefit/handler/browser-tests/json/list-received.json
Large diffs are not rendered by default.
Oops, something went wrong.
413 changes: 201 additions & 212 deletions
413
frontend/benefit/handler/browser-tests/json/single-received.json
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
frontend/benefit/handler/browser-tests/page-model/ApplicationList.ts
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
23 changes: 9 additions & 14 deletions
23
frontend/benefit/handler/browser-tests/pages/archive.testcafe.ts
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
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
12 changes: 4 additions & 8 deletions
12
frontend/benefit/handler/browser-tests/utils/handlerUser.ts
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,10 @@ | ||
import { Role, Selector } from 'testcafe'; | ||
import { Role } from 'testcafe'; | ||
|
||
import { getFrontendUrl } from './url.utils'; | ||
|
||
const handlerUser = Role(getFrontendUrl('/login'), async (t) => { | ||
const loginButton = Selector('button').withAttribute( | ||
'data-testid', | ||
'main-login-button' | ||
); | ||
// Click the <button> element, otherwise causes selector timeout before click | ||
await t.click(loginButton); | ||
const handlerUser = Role(getFrontendUrl('/'), async (t: TestController) => { | ||
// We will have to click this with ad hoc selector because login causes some internal reloads that testcafe fails to detect | ||
await t.click('[data-testid="main-login-button"]'); | ||
}); | ||
|
||
export default handlerUser; |
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