Skip to content

Commit a8b52c2

Browse files
chore(test): Updated test with byType (#42)
1 parent 8af6ce8 commit a8b52c2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
name: Install dev dependencies
1919
- run: npx semantic-release
2020
env:
21-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2222
NPM_TOKEN: ${{ secrets.npm_token }}
2323
name: Release

test/specs/test.e2e.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ async function performLogin(userName = 'admin', password = '1234') {
99

1010
await browser.flutterByValueKey$('password_text_field').clearValue();
1111
await browser.flutterByValueKey$('password').addValue(password);
12-
await browser.flutterByValueKey$('login_button').click();
12+
expect(await browser.flutterByType$('ElevatedButton').flutterByType$("Text").getText()).toEqual('Login');
13+
await browser.flutterByType$('ElevatedButton').click();
1314
}
1415

1516
async function openScreen(screenTitle) {

0 commit comments

Comments
 (0)