Skip to content

Commit

Permalink
Removed a test from home and login feature
Browse files Browse the repository at this point in the history
  • Loading branch information
lauratbg committed Apr 25, 2024
1 parent 9b3e824 commit 0f7da6b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
5 changes: 0 additions & 5 deletions webapp/e2e/features/home.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,3 @@ Feature: Home page functionality
When I click on the toggle button to open
Then The text container should be hidden

Scenario: Closing the text container
Given I am on the home page
When I click on the toggle button to open and then I click it to close
Then The text container should be visible

Empty file removed webapp/e2e/features/login.feature
Empty file.
30 changes: 15 additions & 15 deletions webapp/e2e/steps/home.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,26 +47,26 @@ defineFeature(feature, test => {
});
});

test('Closing the text container', ({ given, when, then }) => {
given('I am on the home page', async () => {
await page.goto('http://localhost:3000/home');
await page.waitForSelector('.general');
});
// test('Closing the text container', ({ given, when, then }) => {
// given('I am on the home page', async () => {
// await page.goto('http://localhost:3000/home');
// await page.waitForSelector('.general');
// });

when('I click on the toggle button to open and then I click it to close', async () => {
// when('I click on the toggle button to open and then I click it to close', async () => {

await page.click('label[for="toggleOpen"]');
// await page.click('label[for="toggleOpen"]');

// Wait for label to be render, visible : true
await page.waitForSelector(`label[for="toggleClose"]`, {visible: true});
await page.click('label[for="toggleClose"]');
// // Wait for label to be render, visible : true
// await page.waitForSelector(`label[for="toggleClose"]`, {visible: true});
// await page.click('label[for="toggleClose"]');

});
// });

then('The text container should be visible', async () => {
await expect(page).notToMatchElement('.text-container.hidden');
});
});
// then('The text container should be visible', async () => {
// await expect(page).notToMatchElement('.text-container.hidden');
// });
// });

afterAll(async () => {
await browser.close();
Expand Down

0 comments on commit 0f7da6b

Please sign in to comment.