Skip to content

Commit

Permalink
feat(auth): add backdrop click to login codecept test
Browse files Browse the repository at this point in the history
  • Loading branch information
royschut committed Aug 10, 2021
1 parent 1d74a18 commit 9a29722
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/login_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ Scenario('I can close the modal', ({ I }) => {
I.dontSee('Email');
I.click('Sign in');
I.see('Email');

I.forceClick('div[data-testid="backdrop"]');
I.dontSee('Email');
I.click('Sign in');
I.see('Email');
});

Scenario('I can toggle to view password', async ({ I }) => {
Expand All @@ -42,6 +47,7 @@ Scenario('I get a warning when the form is incompletely filled in', ({ I }) => {
I.click('button[type="submit"]');
I.see('This field is required');
I.seeNumberOfElements('div[class="_helperText_1rxvx_5"]', 2);
I.seeCssPropertiesOnElements('div[class="_container_1rxvx_8"]', { 'border-color': '#ff0c3e'});

I.fillField('Email', '12345@test');
I.fillField('password', 'test');
Expand Down

0 comments on commit 9a29722

Please sign in to comment.