forked from oppia/oppia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 20363: Enhancing Acceptance Test Directory Organization (oppia#20364
- Loading branch information
1 parent
6345bf8
commit e2f9d43
Showing
42 changed files
with
260 additions
and
245 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
File renamed without changes
File renamed without changes
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
66 changes: 0 additions & 66 deletions
66
...ts/puppeteer-acceptance-tests/spec/translation-admin-tests/add-translation-rights.spec.ts
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
|
@@ -17,46 +17,46 @@ | |
* and view all explorations created by that creator | ||
*/ | ||
|
||
import testConstants from '../../puppeteer-testing-utilities/test-constants'; | ||
import {ExplorationEditor} from '../../user-utilities/exploration-editor-utils'; | ||
import {LoggedInUser} from '../../user-utilities/logged-in-users-utils'; | ||
import {UserFactory} from '../../puppeteer-testing-utilities/user-factory'; | ||
import {UserFactory} from '../../utilities/common/user-factory'; | ||
import testConstants from '../../utilities/common/test-constants'; | ||
import {ExplorationEditor} from '../../utilities/user/exploration-editor'; | ||
import {LoggedInUser} from '../../utilities/user/logged-in-user'; | ||
|
||
const DEFAULT_SPEC_TIMEOUT = testConstants.DEFAULT_SPEC_TIMEOUT_MSECS; | ||
|
||
describe('Logged-in User', function () { | ||
let testLearner: LoggedInUser; | ||
let explorationCreator: ExplorationEditor; | ||
let explorationEditor: ExplorationEditor; | ||
|
||
beforeAll(async function () { | ||
testLearner = await UserFactory.createNewUser( | ||
'testLearner', | ||
'[email protected]' | ||
); | ||
explorationCreator = await UserFactory.createNewUser( | ||
'explorationCreator', | ||
'exploration_creator@example.com' | ||
explorationEditor = await UserFactory.createNewUser( | ||
'explorationEditor', | ||
'exploration_editor@example.com' | ||
); | ||
|
||
await explorationCreator.createAndPublishAMinimalExplorationWithTitle( | ||
await explorationEditor.createAndPublishAMinimalExplorationWithTitle( | ||
'Test Exploration' | ||
); | ||
}, DEFAULT_SPEC_TIMEOUT); | ||
|
||
it( | ||
'should subscribe to a creator and view all explorations created by that creator', | ||
async function () { | ||
await explorationCreator.navigateToCreatorDashboardPage(); | ||
await explorationCreator.expectNumberOfSubscribersToBe(0); | ||
await explorationEditor.navigateToCreatorDashboardPage(); | ||
await explorationEditor.expectNumberOfSubscribersToBe(0); | ||
|
||
await testLearner.navigateToProfilePage('explorationCreator'); | ||
await testLearner.subscribeToCreator('explorationCreator'); | ||
await testLearner.navigateToProfilePage('explorationEditor'); | ||
await testLearner.subscribeToCreator('explorationEditor'); | ||
|
||
await explorationCreator.reloadPage(); | ||
await explorationCreator.expectNumberOfSubscribersToBe(1); | ||
await explorationEditor.reloadPage(); | ||
await explorationEditor.expectNumberOfSubscribersToBe(1); | ||
|
||
await explorationCreator.openSubscribersTab(); | ||
await explorationCreator.expectUserToBeASubscriber('testLearner'); | ||
await explorationEditor.openSubscribersTab(); | ||
await explorationEditor.expectUserToBeASubscriber('testLearner'); | ||
|
||
await testLearner.expectExplorationToBePresentInProfilePageWithTitle( | ||
'Test Exploration' | ||
|
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
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
Oops, something went wrong.