Skip to content

Commit

Permalink
Merge pull request #1963 from lutraconsulting/fix-autotests-3
Browse files Browse the repository at this point in the history
Fix autotests - use created projects instead of all public projects
  • Loading branch information
tomasMizera authored Feb 23, 2022
2 parents c1fc48a + fe03968 commit 047d7d2
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions app/test/testmerginapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,8 @@ void TestMerginApi::testListProject()
{
QString projectName = "testListProject";

// check that there's no hello world project
QSignalSpy spy0( mApi, &MerginApi::listProjectsFinished );
mApi->listProjects( QString() );
QVERIFY( spy0.wait( TestUtils::SHORT_REPLY ) );
QCOMPARE( spy0.count(), 1 );
MerginProjectsList projects = projectListFromSpy( spy0 );
// check that there's no testListProject
MerginProjectsList projects = getProjectList();

QVERIFY( !_findProjectByName( mUsername, projectName, projects ).isValid() );
QVERIFY( !mApi->localProjectsManager().projectFromMerginName( mUsername, projectName ).isValid() );
Expand All @@ -146,11 +142,7 @@ void TestMerginApi::testListProject()
createRemoteProject( mApiExtra, mUsername, projectName, mTestDataPath + "/" + TEST_PROJECT_NAME + "/" );

// check the project exists on the server
QSignalSpy spy( mApi, &MerginApi::listProjectsFinished );
mApi->listProjects( QString() );
QVERIFY( spy.wait( TestUtils::SHORT_REPLY ) );
QCOMPARE( spy.count(), 1 );
projects = projectListFromSpy( spy );
projects = getProjectList();

QVERIFY( _findProjectByName( mUsername, projectName, projects ).isValid() );

Expand Down

2 comments on commit 047d7d2

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 2.36.220223132252 just submitted!

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 1.36.220224094329 just submitted!

Please sign in to comment.